mirror of
https://gitlab.com/jeancf/twoot.git
synced 2025-01-18 23:37:05 +00:00
Added tolerance for encoding exception
This commit is contained in:
parent
65b3065a75
commit
55f188b9f9
2
twoot.py
2
twoot.py
|
@ -223,7 +223,7 @@ def main(argv):
|
|||
if match is not None:
|
||||
url = match.group(1).replace('&', '&') # Remove HTML-safe encoding from URL if any
|
||||
photos.append(url)
|
||||
except (requests.exceptions.ConnectionError, requests.exceptions.Timeout):
|
||||
except (requests.exceptions.ConnectionError, requests.exceptions.Timeout, requests.exceptions.ContentDecodingError):
|
||||
pass
|
||||
|
||||
# Add dictionary with content of tweet to list
|
||||
|
|
Loading…
Reference in New Issue
Block a user