From fc36380296930210672f9106d725b6b9d0bcb9cc Mon Sep 17 00:00:00 2001 From: Moritz Gunz Date: Fri, 10 Jan 2025 13:26:06 +0100 Subject: [PATCH] do not spawn a debug shell --- returnn/util/debug.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/returnn/util/debug.py b/returnn/util/debug.py index 14f4e3e81..98c65b35e 100644 --- a/returnn/util/debug.py +++ b/returnn/util/debug.py @@ -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