diff options
-rwxr-xr-x | cura_app.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cura_app.py b/cura_app.py index 38d1149080..2358108845 100755 --- a/cura_app.py +++ b/cura_app.py @@ -170,9 +170,9 @@ def exceptHook(hook_type, value, traceback): # Set exception hook to use the crash dialog handler sys.excepthook = exceptHook # Enable dumping traceback for all threads -if sys.stderr: +if sys.stderr and not sys.stderr.closed: faulthandler.enable(file = sys.stderr, all_threads = True) -elif sys.stdout: +elif sys.stdout and not sys.stdout.closed: faulthandler.enable(file = sys.stdout, all_threads = True) from cura.CuraApplication import CuraApplication |