prevent fails because of missing stdout or stderr

This commit is contained in:
2026-05-27 15:31:57 +02:00
parent e1dd12aa6b
commit ccc0219268

View File

@@ -1 +1,6 @@
import os
import sys
if sys.stdout is None or sys.stderr is None:
sys.stdout = open(os.devnull, "w")
sys.stderr = open(os.devnull, "w")