From 991e719315bc4cfee51f0ef3b3250a386bad82cd Mon Sep 17 00:00:00 2001 From: Stephen Moore Date: Thu, 2 Apr 2026 15:31:22 +0100 Subject: [PATCH] Amended WorkerError custom exception to print all details. Printing standard tracebacks now includes the original exception. --- src/calibre/utils/ipc/simple_worker.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/calibre/utils/ipc/simple_worker.py b/src/calibre/utils/ipc/simple_worker.py index b1cb3ca66b..2c7ca8c28e 100644 --- a/src/calibre/utils/ipc/simple_worker.py +++ b/src/calibre/utils/ipc/simple_worker.py @@ -31,6 +31,10 @@ class WorkerError(Exception): self.orig_tb = orig_tb self.log_path = log_path + if orig_tb != '' : + self.add_note(str(orig_tb)) + if log_path : + self.add_note(str(log_path)) class ConnectedWorker(Thread):