aboutsummaryrefslogtreecommitdiffstats
path: root/bsie/lib
diff options
context:
space:
mode:
authorMatthias Baumgartner <dev@igsor.net>2023-01-16 20:53:39 +0100
committerMatthias Baumgartner <dev@igsor.net>2023-01-16 20:53:39 +0100
commitafd165000c1661a9cca117a4844ad3f89d926fdb (patch)
tree865a1077c56d2f373af9cdc1b800516fdd0695f0 /bsie/lib
parent3f93be488638fdf6668e0e03e2b1634bb969ca80 (diff)
downloadbsie-afd165000c1661a9cca117a4844ad3f89d926fdb.tar.gz
bsie-afd165000c1661a9cca117a4844ad3f89d926fdb.tar.bz2
bsie-afd165000c1661a9cca117a4844ad3f89d926fdb.zip
unsupported file format exception
Diffstat (limited to 'bsie/lib')
-rw-r--r--bsie/lib/pipeline.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/bsie/lib/pipeline.py b/bsie/lib/pipeline.py
index e5ce1b7..02119bc 100644
--- a/bsie/lib/pipeline.py
+++ b/bsie/lib/pipeline.py
@@ -126,6 +126,8 @@ class Pipeline():
# get content
content = rdr(path) if rdr is not None else None
+ #logger.info('extracted %s from %s', rdr, path)
+
# apply extractors on this content
for ext in extrs:
try:
@@ -137,6 +139,11 @@ class Pipeline():
# critical extractor failure.
logger.error('%s failed to extract triples from content: %s', ext, err)
+ except errors.UnsupportedFileFormatError as err:
+ # failed to read the file format. skip.
+ #logger.warning('%s could not process the file format of %s', rdr, err)
+ pass
+
except errors.ReaderError as err:
# failed to read any content. skip.
logger.error('%s failed to read content: %s', rdr, err)