From: Christian Heller Date: Fri, 5 Feb 2016 10:41:54 +0000 (+0100) Subject: Add idna Unicode decoding error handler to URL follower. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/test?a=commitdiff_plain;h=5ef37de70327806a7c95b8c64f974a17c450f2d7;p=plomlombot-irc.git Add idna Unicode decoding error handler to URL follower. --- diff --git a/plomlombot.py b/plomlombot.py index 0dd9823..ed02792 100755 --- a/plomlombot.py +++ b/plomlombot.py @@ -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