Skip to content

Commit

Permalink
Merge pull request #15 from Captricity/master
Browse files Browse the repository at this point in the history
Don't overwrite a custom message
  • Loading branch information
stavxyz committed Oct 6, 2014
2 parents 0b67a1c + 19d8764 commit d87bea0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airbrake/notifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def __init__(self, exc_info=None, message=None, filename=None,
self.data.update(
{'type': self.exc_info[1].__class__.__name__,
'backtrace': format_backtrace(self.exc_info[2]),
'message': tbmessage})
'message': message or tbmessage})
else:
raise TypeError(
"Airbrake module (notifier.Error) received "
Expand Down

0 comments on commit d87bea0

Please sign in to comment.