From: Christian Heller Date: Tue, 19 Jan 2016 21:46:52 +0000 (+0100) Subject: Catch InvalidURL requests exception. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/%7B%7Bdb.prefix%7D%7D/condition_descriptions?a=commitdiff_plain;h=269fcae158d408bf2629cf4a1157943831a6933a;p=plomlombot-irc.git Catch InvalidURL requests exception. --- diff --git a/plomlombot.py b/plomlombot.py index 3e4734f..767d1f7 100755 --- a/plomlombot.py +++ b/plomlombot.py @@ -114,6 +114,7 @@ def lineparser_loop(io, nickname): r = requests.get(url, timeout=15) except (requests.exceptions.TooManyRedirects, requests.exceptions.ConnectionError, + requests.exceptions.InvalidURL, requests.exceptions.InvalidSchema) as error: notice("TROUBLE FOLLOWING URL: " + str(error)) continue