We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f7772c commit 920dd4bCopy full SHA for 920dd4b
Lib/test/support/socket_helper.py
@@ -261,7 +261,7 @@ def filter_error(err):
261
err = a[1]
262
# The error can also be wrapped as __cause__:
263
# raise URLError(f"ftp error: {exp}") from exp
264
- elif isinstance(err, urllib.error.UrlError) and err.__cause__:
+ elif isinstance(err, urllib.error.URLError) and err.__cause__:
265
err = err.__cause__
266
else:
267
break
0 commit comments