Skip to content

Commit

Permalink
Show the type if we have it. (Closes: #40)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
  • Loading branch information
lamby committed Mar 9, 2016
1 parent 107d749 commit 8dea311
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions django_slack/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ def emit(self, record):
except:
tb = "(An exception occured when getting the traceback text)"

if reporter.exc_type:
tb = "%s (An exception occured when rendering the traceback)" \
% reporter.exc_type.__name__

message = "%s\n\n%s" % (self.format(no_exc_record), tb)

colors = {
Expand Down

0 comments on commit 8dea311

Please sign in to comment.