File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -295,7 +295,11 @@ def process_job_result(
295295 if result .exit_code is not None :
296296 result .status = IndexingWatchdogTerminalStatus .from_code (result .exit_code )
297297
298- result .exception_str = job .exception ()
298+ job_level_exception = job .exception ()
299+ result .exception_str = (
300+ f"Docfetching returned exit code { result .exit_code } "
301+ f"with exception: { job_level_exception } "
302+ )
299303
300304 return result
301305
Original file line number Diff line number Diff line change @@ -153,10 +153,9 @@ def exception(self) -> str:
153153 if self ._exception is None and self .queue and not self .queue .empty ():
154154 self ._exception = self .queue .get () # Get exception from queue
155155
156- if self ._exception :
157- return self ._exception
158-
159- return f"Job with ID '{ self .id } ' did not report an exception."
156+ return (
157+ self ._exception or f"Job with ID '{ self .id } ' did not report an exception."
158+ )
160159
161160
162161class SimpleJobClient :
You can’t perform that action at this time.
0 commit comments