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