We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07636b4 commit 91a05fbCopy full SHA for 91a05fb
ronkyuu/tools.py
@@ -55,7 +55,9 @@ def getURLChain(targetURL):
55
if ok:
56
for resp in r.history:
57
chain.append(r.url)
58
- except:
+ except (requests.exceptions.RequestException, requests.exceptions.ConnectionError,
59
+ requests.exceptions.HTTPError, requests.exceptions.URLRequired,
60
+ requests.exceptions.TooManyRedirects, requests.exceptions.Timeout):
61
ok = False
62
return (ok, chain)
63
0 commit comments