[common] introduce 'status' attribute to Extractors

allows reporting error codes for exceptions that are not handled
by the Job.run() try-except block

- fixes Job.status being 0 in certain situations even when errors occurred
- fixes some URLs not getting written to -e/--error-file (#7758)
This commit is contained in:
Mike Fährmann
2025-07-05 21:19:48 +02:00
parent d349c248c0
commit 1bbacba4ed
3 changed files with 9 additions and 3 deletions

View File

@@ -186,6 +186,8 @@ class Job():
self.handle_finalize()
extractor.finalize()
if s := extractor.status:
self.status |= s
return self.status
def dispatch(self, msg):