Skip to content

Commit

Permalink
do not spawn a debug shell
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoLegends committed Jan 10, 2025
1 parent af092f2 commit fc36380
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion returnn/util/debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,9 @@ def excepthook(exc_type, exc_obj, exc_tb):

def threading_excepthook(args, /):
"""threading-specific excepthook"""
better_exchook(args.exc_type, args.exc_value, args.exc_traceback, file=log.v1 or sys.stdout)
better_exchook(
args.exc_type, args.exc_value, args.exc_traceback, autodebugshell=False, file=log.v1 or sys.stdout
)
thread.interrupt_main()

threading.excepthook = threading_excepthook
Expand Down

0 comments on commit fc36380

Please sign in to comment.