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