From a17b7f584d747f8a30db81e07171ce2174240bca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sat, 1 Feb 2014 14:01:21 +0100 Subject: [PATCH] backups: improve exception reporting during extract Report original exception location, not the wrapper function. --- core/backup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/backup.py b/core/backup.py index 9a47cc49..f497f683 100644 --- a/core/backup.py +++ b/core/backup.py @@ -747,6 +747,7 @@ class ExtractWorker(Process): try: self.__run__() except Exception as e: + exc_type, exc_value, exc_traceback = sys.exc_info() # Cleanup children for process in [self.decompressor_process, self.decryptor_process, @@ -759,7 +760,7 @@ class ExtractWorker(Process): pass process.wait() self.error_callback(str(e)) - raise e + raise e, None, exc_traceback def __run__(self): if BACKUP_DEBUG: