py3 compat: Ensure exception is last line in pipe worker tracebacks on windows

This commit is contained in:
Kovid Goyal 2019-12-21 11:55:12 +05:30
parent 540edf6b05
commit 4ff60cba2f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -189,6 +189,7 @@ def main():
exec(sys.argv[-1]) exec(sys.argv[-1])
except Exception: except Exception:
print('Failed to run pipe worker with command:', sys.argv[-1]) print('Failed to run pipe worker with command:', sys.argv[-1])
sys.stdout.flush()
raise raise
return return
address = msgpack_loads(from_hex_bytes(os.environ['CALIBRE_WORKER_ADDRESS'])) address = msgpack_loads(from_hex_bytes(os.environ['CALIBRE_WORKER_ADDRESS']))