mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-17 03:09:40 +08:00
Added check for stdout being defined.
This commit is contained in:
parent
507459660e
commit
1b72577f88
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user