diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2017-10-19 18:35:24 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2017-10-19 20:01:07 +0200 |
commit | 88221747c92150f36e6dc7275489dadbc3c61520 (patch) | |
tree | 213d82a2e91a745c7d607f6eee5f0229cf467040 /wee_slack.py | |
parent | 4766112f5449042085e2626d861ec19e29d7d690 (diff) | |
download | wee-slack-88221747c92150f36e6dc7275489dadbc3c61520.tar.gz |
Decode exceptions from utf8
Fixes #407
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wee_slack.py b/wee_slack.py index 25710df..8003d9e 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -1078,7 +1078,7 @@ class SlackTeam(object): self.set_connected() self.connecting = False except Exception as e: - dbg("websocket connection error: {}".format(e)) + dbg("websocket connection error: {}".format(decode_from_utf8(e))) self.connecting = False return False else: @@ -1544,7 +1544,7 @@ class SlackChannel(object): nick_group = here w.nicklist_add_nick(self.channel_buffer, nick_group, user.name, user.color_name, "", "", 1) except Exception as e: - dbg("DEBUG: {} {} {}".format(self.identifier, self.name, e)) + dbg("DEBUG: {} {} {}".format(self.identifier, self.name, decode_from_utf8(e))) else: w.nicklist_remove_all(self.channel_buffer) for fn in ["1| too", "2| many", "3| users", "4| to", "5| show"]: |