Skip to content

Commit 0b113e4

Browse files
committed
adding callstack when exception
1 parent ac6181c commit 0b113e4

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎example/cli/mynameis.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,7 @@ def parseOptions():
145145
print(err)
146146
print(MSG_USAGE)
147147
# Prints the callstack, good for debugging, comment out for production
148-
#traceback.print_exception()
149-
#traceback.print_stack()
148+
traceback.print_exception(Exception, err, None)
150149
sys.exit(EXIT_USAGE)
151150

152151

0 commit comments

Comments
 (0)