mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
f5301dbfef
commit
54d7657527
@ -47,8 +47,11 @@ if iswindows:
|
|||||||
except:
|
except:
|
||||||
eintr_retry_call(print, b'KO', file=sys.stdout)
|
eintr_retry_call(print, b'KO', file=sys.stdout)
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
import traceback
|
try:
|
||||||
traceback.print_exc() # goes to stderr, which is the same as for parent process
|
import traceback
|
||||||
|
traceback.print_exc() # goes to stderr, which is the same as for parent process
|
||||||
|
except Exception:
|
||||||
|
pass # Ignore failures to write the traceback, since GUI processes on windows have no stderr
|
||||||
else:
|
else:
|
||||||
eintr_retry_call(print, b'OK', file=sys.stdout)
|
eintr_retry_call(print, b'OK', file=sys.stdout)
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user