diff --git a/twoot.py b/twoot.py index e5e1d26..6b6aaf6 100755 --- a/twoot.py +++ b/twoot.py @@ -227,7 +227,10 @@ 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, requests.exceptions.ContentDecodingError): + except (requests.exceptions.ConnectionError, + requests.exceptions.Timeout, + requests.exceptions.ContentDecodingError, + requests.exceptions.TooManyRedirects): pass # Add dictionary with content of tweet to list