refactor: Remove pymupdf coupling in extraction

The library is only needed for pdf extraction which is taken care of
in its own extractor plugin. In the overall extraction routine we do not
need any knowledge of the existence of pymupdf.
This commit is contained in:
Marty Oehme 2024-06-14 14:59:39 +02:00
parent 7261e7d80c
commit 8093259551
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A
3 changed files with 52 additions and 29 deletions

View file

@ -16,3 +16,13 @@ if find_spec("bs4") and find_spec("magic"):
all_extractors["pocketbook"] = PocketBookExtractor()
else:
logger.debug("pocketbook extractor not activated.")
class ExtractionError(Exception):
"""Raised for exceptions during extraction.
Something went wrong during the extraction process in the extractor
run routine itself.
"""
pass