From 5ef37de70327806a7c95b8c64f974a17c450f2d7 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Fri, 5 Feb 2016 11:41:54 +0100 Subject: [PATCH] Add idna Unicode decoding error handler to URL follower. --- plomlombot.py | 1 + 1 file changed, 1 insertion(+) 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 -- 2.30.2