summaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/work_pipeline.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-05-20 21:10:22 -0700
committerBryan Newbold <bnewbold@archive.org>2020-05-20 21:10:22 -0700
commit4cb49d000d7f6c880995ddd5fc2d4b142e7c4f7e (patch)
tree61c897a01d573839a31460ec470fb5bd48222f48 /fatcat_scholar/work_pipeline.py
parent2783004d2a497fe67029fc77c31de6b7405c41a5 (diff)
downloadfatcat-scholar-4cb49d000d7f6c880995ddd5fc2d4b142e7c4f7e.tar.gz
fatcat-scholar-4cb49d000d7f6c880995ddd5fc2d4b142e7c4f7e.zip
skip pdftotext loading on unicode error
Diffstat (limited to 'fatcat_scholar/work_pipeline.py')
-rw-r--r--fatcat_scholar/work_pipeline.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/fatcat_scholar/work_pipeline.py b/fatcat_scholar/work_pipeline.py
index 5bfc1b6..7100b32 100644
--- a/fatcat_scholar/work_pipeline.py
+++ b/fatcat_scholar/work_pipeline.py
@@ -125,6 +125,8 @@ class WorkPipeline():
)
except FileNotFoundError:
pass
+ except except UnicodeDecodeError:
+ pass
return None
def lookup_sim(self, release: ReleaseEntity) -> Optional[SimIssueRow]: