Skip to content

Commit 00edac4

Browse files
committed
Use console.showtraceback() instead of sys.excepthook()
1 parent 5b3ad2c commit 00edac4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/asyncio/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def run(self):
106106
except SystemExit:
107107
raise
108108
except BaseException:
109-
sys.excepthook(*sys.exc_info())
109+
console.showtraceback()
110110

111111
ps1 = getattr(sys, "ps1", ">>> ")
112112
if CAN_USE_PYREPL:

0 commit comments

Comments
 (0)