This commit is contained in:
Kovid Goyal 2022-03-24 09:37:13 +05:30
parent bfb8532c52
commit 9eae4ad913
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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.')