We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1e9b314 + 3ad8620 commit a366263Copy full SHA for a366263
pirate/torrent.py
@@ -146,7 +146,7 @@ def find_api(mirror, timeout):
146
f = request.urlopen(req, timeout=timeout)
147
if f.info().get_content_type() == 'application/json':
148
return mirror + path
149
- except urllib.error.URLError as e:
+ except urllib.error.HTTPError as e:
150
res = e.fp.read().decode()
151
if e.code == 503 and 'cf-browser-verification' in res:
152
raise IOError('Cloudflare protected')
0 commit comments