urlinfo: catch TooManyRedirects exceptions

This commit is contained in:
jkhsjdhjs 2021-08-13 17:26:20 +00:00
parent ceb3002281
commit dab86916ab

View File

@ -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):
except (requests.exceptions.ConnectionError, requests.exceptions.HTTPError, requests.exceptions.ReadTimeout, requests.exceptions.TooManyRedirects):
return
bytes_io.seek(0)