mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-27 15:44:12 +08:00
fix
This commit is contained in:
parent
9486b58ca0
commit
6aaaa274bc
@ -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"(
|
||||
|
Loading…
x
Reference in New Issue
Block a user