aboutsummaryrefslogtreecommitdiffstats
path: root/bsie/lib/pipeline.py
diff options
context:
space:
mode:
Diffstat (limited to 'bsie/lib/pipeline.py')
-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)