diff options
author | Tollef Fog Heen <tfheen@err.no> | 2015-06-26 01:39:13 +0200 |
---|---|---|
committer | Tollef Fog Heen <tfheen@err.no> | 2015-06-26 01:39:13 +0200 |
commit | cf79907a92dbfbc752d32a4b12f180106835075a (patch) | |
tree | ffc82ddd79a41438502577d75551b3ffc01059fd /wee_slack.py | |
parent | d301799f0440da04691532176f5b395bd0ece33b (diff) | |
download | wee-slack-cf79907a92dbfbc752d32a4b12f180106835075a.tar.gz |
Make exception handling slightly more verbose and print the exception
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 a6f1e21..78ed425 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -430,8 +430,8 @@ class Channel(SlackThing): w.nicklist_add_nick(self.channel_buffer, "", user.name, user.color_name, " ", "", 1) else: w.nicklist_add_nick(self.channel_buffer, "", user.name, user.color_name, "+", "", 1) - except: - print "DEBUG: {} {}".format(self.identifier,self.name) + except Exception as e: + print "DEBUG: {} {} {}".format(self.identifier, self.name, e) def fullname(self): return "{}.{}".format(self.server.domain, self.name) |