Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
SystemExit inherits from BaseException instead of Exception.
  • Loading branch information
myd7349 committed Jul 17, 2023
1 parent c8a9cd8 commit cf2e5e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PyStand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ const char *init_script =
"try:\n"
" code = compile(text, PYSTAND_SCRIPT, 'exec')\n"
" exec(code, environ)\n"
"except:\n"
"except Exception:\n"
" import traceback, io\n"
" sio = io.StringIO()\n"
" traceback.print_exc(file = sio)\n"
Expand Down

0 comments on commit cf2e5e3

Please sign in to comment.