Skip to content

Commit

Permalink
If BuildError extra_info contains a traceback, print only the traceback
Browse files Browse the repository at this point in the history
  • Loading branch information
mikicz committed Mar 6, 2018
1 parent 91efa87 commit a51747b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arca/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,12 @@ def __init__(self, *args, extra_info=None, **kwargs):
self.extra_info = extra_info

def __str__(self):
extra_info = self.extra_info
if isinstance(extra_info, dict) and "traceback" in extra_info:
extra_info = extra_info["traceback"]
return "{}\n\n{}".format(
super().__str__(),
self.extra_info
extra_info
)


Expand Down

0 comments on commit a51747b

Please sign in to comment.