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 0dd9823612d83c84a54e3e935197589f88ea3d15..ed0279279076217fb192ce3f49a76c570d90c111 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