backups: improve exception reporting during extract

Report original exception location, not the wrapper function.
This commit is contained in:
Marek Marczykowski-Górecki 2014-02-01 14:01:21 +01:00
parent 60d373dbda
commit a17b7f584d

View File

@ -747,6 +747,7 @@ class ExtractWorker(Process):
try: try:
self.__run__() self.__run__()
except Exception as e: except Exception as e:
exc_type, exc_value, exc_traceback = sys.exc_info()
# Cleanup children # Cleanup children
for process in [self.decompressor_process, for process in [self.decompressor_process,
self.decryptor_process, self.decryptor_process,
@ -759,7 +760,7 @@ class ExtractWorker(Process):
pass pass
process.wait() process.wait()
self.error_callback(str(e)) self.error_callback(str(e))
raise e raise e, None, exc_traceback
def __run__(self): def __run__(self):
if BACKUP_DEBUG: if BACKUP_DEBUG: