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 3e4734fa2ec2403aa093768623e1ca9b189d5cd8..767d1f71a156c5a744c8d80ed08802ad97af0127 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