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
attached = True
except Exception as e:
fp = open(os.devnull, 'w', errors='ignore')
sys.stdout = fp
sys.stderr = fp
attached = False
try:
fp = open(os.devnull, 'w', errors='ignore') # sometimes FileNotFound Error: [Errno 2]No such file or directory: 'nul'
sys.stdout = fp
sys.stderr = fp
attached = False
except:
pass
)"
#endif
LR"(