diff --git a/twoot.py b/twoot.py index 21209be..25f123c 100755 --- a/twoot.py +++ b/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