We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3a8b0e commit 673b2c7Copy full SHA for 673b2c7
1 file changed
python/pythonmonkey/cli/pmjs.py
@@ -367,7 +367,10 @@ async def runJS():
367
globalInitModule.patchGlobalRequire()
368
pm.runProgramModule(args[0], args, requirePath)
369
await pm.wait() # blocks until all asynchronous calls finish
370
- asyncio.run(runJS())
+ try:
371
+ asyncio.run(runJS())
372
+ except KeyboardInterrupt:
373
+ print() # silently going to end the program instead of printing out the Python traceback
374
elif (enterRepl or forceRepl):
375
async def runREPL():
376
globalInitModule.initReplLibs()
0 commit comments