mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Added check for stdout being defined.
This commit is contained in:
parent
507459660e
commit
1b72577f88
1 changed files with 1 additions and 1 deletions
|
|
@ -162,7 +162,7 @@ sys.excepthook = exceptHook
|
||||||
# Enable dumping traceback for all threads
|
# Enable dumping traceback for all threads
|
||||||
if sys.stderr:
|
if sys.stderr:
|
||||||
faulthandler.enable(file = sys.stderr, all_threads = True)
|
faulthandler.enable(file = sys.stderr, all_threads = True)
|
||||||
else:
|
elif sys.stdout:
|
||||||
faulthandler.enable(file = sys.stdout, all_threads = True)
|
faulthandler.enable(file = sys.stdout, all_threads = True)
|
||||||
|
|
||||||
# Workaround for a race condition on certain systems where there
|
# Workaround for a race condition on certain systems where there
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue