home · contact · privacy
Catch InvalidURL requests exception.
authorChristian Heller <c.heller@plomlompom.de>
Tue, 19 Jan 2016 21:46:52 +0000 (22:46 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Tue, 19 Jan 2016 21:46:52 +0000 (22:46 +0100)
plomlombot.py

index 3e4734f..767d1f7 100755 (executable)
@@ -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