This commit is contained in:
恍兮惚兮 2024-10-29 15:53:11 +08:00
parent 9486b58ca0
commit 6aaaa274bc

View File

@ -282,10 +282,13 @@ try:
sys.stderr = fp sys.stderr = fp
attached = True attached = True
except Exception as e: except Exception as e:
fp = open(os.devnull, 'w', errors='ignore') try:
sys.stdout = fp fp = open(os.devnull, 'w', errors='ignore') # sometimes FileNotFound Error: [Errno 2]No such file or directory: 'nul'
sys.stderr = fp sys.stdout = fp
attached = False sys.stderr = fp
attached = False
except:
pass
)" )"
#endif #endif
LR"( LR"(