diff options
author | Bryan Newbold <bnewbold@archive.org> | 2020-05-20 21:10:22 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-05-20 21:10:22 -0700 |
commit | 4cb49d000d7f6c880995ddd5fc2d4b142e7c4f7e (patch) | |
tree | 61c897a01d573839a31460ec470fb5bd48222f48 | |
parent | 2783004d2a497fe67029fc77c31de6b7405c41a5 (diff) | |
download | fatcat-scholar-4cb49d000d7f6c880995ddd5fc2d4b142e7c4f7e.tar.gz fatcat-scholar-4cb49d000d7f6c880995ddd5fc2d4b142e7c4f7e.zip |
skip pdftotext loading on unicode error
-rw-r--r-- | fatcat_scholar/work_pipeline.py | 2 |
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]: |