mirror of
https://gitlab.com/jeancf/twoot.git
synced 2025-01-31 13:43:46 +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:
|
if match is not None:
|
||||||
url = match.group(1).replace('&', '&') # Remove HTML-safe encoding from URL if any
|
url = match.group(1).replace('&', '&') # Remove HTML-safe encoding from URL if any
|
||||||
photos.append(url)
|
photos.append(url)
|
||||||
except (requests.exceptions.ConnectionError, requests.exceptions.Timeout):
|
except (requests.exceptions.ConnectionError, requests.exceptions.Timeout, requests.exceptions.ContentDecodingError):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# Add dictionary with content of tweet to list
|
# Add dictionary with content of tweet to list
|
||||||
|
|
Loading…
Reference in New Issue
Block a user