home · contact · privacy
Add idna Unicode decoding error handler to URL follower.
authorChristian Heller <c.heller@plomlompom.de>
Fri, 5 Feb 2016 10:41:54 +0000 (11:41 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Fri, 5 Feb 2016 10:41:54 +0000 (11:41 +0100)
plomlombot.py

index 0dd9823..ed02792 100755 (executable)
@@ -293,6 +293,7 @@ def handle_url(url, notice, show_url=False):
     except (requests.exceptions.TooManyRedirects,
             requests.exceptions.ConnectionError,
             requests.exceptions.InvalidURL,
+            UnicodeError,
             requests.exceptions.InvalidSchema) as error:
         notice("TROUBLE FOLLOWING URL: " + str(error))
         return