Skip to content

Commit

Permalink
- more clarity in Dumper exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ttinies committed Jul 11, 2018
1 parent 8173edf commit 61ce039
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sc2common/commonUtilFuncs.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ def p(given):
print("%s%s"%(" "*(indent), p(obj))) # universally convert back to str for printing
elif obj!=None:
print("%s%s"%(" "*(indent), p(obj)))
except Exception:
except Exception as e:
print(type(obj), obj)
raise
raise type(e)(str(e))


################################################################################
Expand Down

0 comments on commit 61ce039

Please sign in to comment.