add '"skip": "terminate"' option
Stops not only the current extractor/job, but all parent extractors/jobs as well.
This commit is contained in:
@@ -249,6 +249,8 @@ def main():
|
||||
retval |= jobtype(url.value).run()
|
||||
else:
|
||||
retval |= jobtype(url).run()
|
||||
except exception.TerminateExtraction:
|
||||
pass
|
||||
except exception.NoExtractorError:
|
||||
log.error("No suitable extractor found for '%s'", url)
|
||||
retval |= 64
|
||||
|
||||
Reference in New Issue
Block a user