From 269fcae158d408bf2629cf4a1157943831a6933a Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Tue, 19 Jan 2016 22:46:52 +0100 Subject: [PATCH] Catch InvalidURL requests exception. --- plomlombot.py | 1 + 1 file changed, 1 insertion(+) 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 -- 2.30.2