rename 'StopExtraction' to 'AbortExtraction'

for cases where StopExtraction was used to report errors
This commit is contained in:
Mike Fährmann
2025-07-09 21:07:28 +02:00
parent f17ed0569a
commit d8ef1d693f
57 changed files with 149 additions and 156 deletions

View File

@@ -31,7 +31,7 @@ class ImagefapExtractor(Extractor):
msg = text.extr(response.text, '<div class="mt-4', '<')
if msg:
msg = " ".join(msg.partition(">")[2].split())
raise exception.StopExtraction("'%s'", msg)
raise exception.AbortExtraction(f"'{msg}'")
self.log.warning("HTTP redirect to %s", response.url)
return response