From 1b72577f885f792d997cfdf9a6624906a4ed88f9 Mon Sep 17 00:00:00 2001 From: Zachary Cook <35985322+zxc8027@users.noreply.github.com> Date: Fri, 14 Feb 2020 13:02:56 -0500 Subject: [PATCH] Added check for stdout being defined. --- cura_app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cura_app.py b/cura_app.py index d1f7ad1c46..55a60022dc 100755 --- a/cura_app.py +++ b/cura_app.py @@ -162,7 +162,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