We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8952813 commit f4c41dfCopy full SHA for f4c41df
1 file changed
micropython/urllib.urequest/urllib/urequest.py
@@ -68,7 +68,7 @@ def urlopen(url, data=None, method="GET", headers={}):
68
raise ValueError("Unsupported " + l)
69
elif l.startswith(b"Location:"):
70
raise NotImplementedError("Redirects not yet supported")
71
- except OSError:
+ except Exception:
72
s.close()
73
raise
74
0 commit comments