diff --git a/cura_app.py b/cura_app.py index ab52404b4d..6149eeeb9a 100755 --- a/cura_app.py +++ b/cura_app.py @@ -163,7 +163,7 @@ sys.excepthook = exceptHook # Enable dumping traceback for all threads if sys.stderr: faulthandler.enable(file = sys.stderr, all_threads = True) -else: +elif sys.stdout: faulthandler.enable(file = sys.stdout, all_threads = True) # Workaround for a race condition on certain systems where there