...
This commit is contained in:
parent
bfb8532c52
commit
9eae4ad913
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ def report_unhandled_error(msg: str = '') -> None:
|
|||
if msg:
|
||||
print(msg, file=sys.stderr)
|
||||
cls, e, tb = sys.exc_info()
|
||||
if not isinstance(e, (SystemExit, KeyboardInterrupt)):
|
||||
if e and not isinstance(e, (SystemExit, KeyboardInterrupt)):
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
input('Press Enter to quit.')
|
||||
|
|
|
|||
Loading…
Reference in a new issue