home
·
contact
·
privacy
projects
/
plomlombot-irc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb8bbcf
)
Handle UnicodeDecodeError.
author
Christian Heller
<c.heller@plomlompom.de>
Mon, 18 Jan 2016 01:43:46 +0000
(
02:43
+0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Mon, 18 Jan 2016 01:43:46 +0000
(
02:43
+0100)
plomlombot.py
patch
|
blob
|
history
diff --git
a/plomlombot.py
b/plomlombot.py
index 4ec66463566a8205a6d89e7c9baa0a85569742d5..7d0f5355a1f70eb1cc946249d1d5e76154b33b49 100755
(executable)
--- a/
plomlombot.py
+++ b/
plomlombot.py
@@
-109,7
+109,8
@@
def lineparser_loop(io, nickname):
try:
webpage = urllib.request.urlopen(request, timeout=15)
except (urllib.error.HTTPError, urllib.error.URLError,
- UnicodeError, http.client.BadStatusLine) as error:
+ UnicodeError, http.client.BadStatusLine,
+ UnicodeDecodeError) as error:
print("TROUBLE FOLLOWING URL: " + str(error))
continue
charset = webpage.info().get_content_charset()