urlinfo: catch superclass RequestException instead of each exception individually
This commit is contained in:
parent
d59e170e8b
commit
fa51899a24
@ -39,7 +39,7 @@ class URLInfo(Plugin):
|
||||
if size >= self.SIZE_LIMIT:
|
||||
return
|
||||
bytes_io.write(chunk)
|
||||
except (requests.exceptions.ConnectionError, requests.exceptions.HTTPError, requests.exceptions.ReadTimeout, requests.exceptions.TooManyRedirects):
|
||||
except requests.exceptions.RequestException:
|
||||
return
|
||||
|
||||
bytes_io.seek(0)
|
||||
|
Loading…
Reference in New Issue
Block a user