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