mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 00:24: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:
|
||||||
|
fp = open(os.devnull, 'w', errors='ignore') # sometimes FileNotFound Error: [Errno 2]No such file or directory: 'nul'
|
||||||
sys.stdout = fp
|
sys.stdout = fp
|
||||||
sys.stderr = fp
|
sys.stderr = fp
|
||||||
attached = False
|
attached = False
|
||||||
|
except:
|
||||||
|
pass
|
||||||
)"
|
)"
|
||||||
#endif
|
#endif
|
||||||
LR"(
|
LR"(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user