Skip to content

Commit

Permalink
Python traceback is useful for when debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
gvx committed Nov 4, 2009
1 parent 6b45a12 commit 7064ed6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion suzy.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,5 +401,8 @@ def interpret(lines, ismain=False):
try:
interpret(script.split('\n'), True)
except Exception, e:
print "suzy: fatal unhandled error:", e
if options.debug:
raise
else:
print "suzy: fatal unhandled error:", e
filexs.close()

0 comments on commit 7064ed6

Please sign in to comment.