diff options
author | Martin Czygan <martin@archive.org> | 2020-07-24 10:11:37 +0000 |
---|---|---|
committer | Martin Czygan <martin@archive.org> | 2020-07-24 10:11:37 +0000 |
commit | 8b00843af1366cf019c896057706ace4afff27ba (patch) | |
tree | 86fc58bf26f07e272aa27e989f3ab6b4cfef2090 /python/fatcat_tools/importers/grobid_metadata.py | |
parent | 2170e5ff46dfb2bba9bf26196de3c3774c16cd4a (diff) | |
parent | fc93f35996cab23984d9a45f1a411b8776e437bf (diff) | |
download | fatcat-8b00843af1366cf019c896057706ace4afff27ba.tar.gz fatcat-8b00843af1366cf019c896057706ace4afff27ba.zip |
Merge branch 'bnewbold-more-lint-fixes' into 'master'
more lint fixes
See merge request webgroup/fatcat!69
Diffstat (limited to 'python/fatcat_tools/importers/grobid_metadata.py')
-rw-r--r-- | python/fatcat_tools/importers/grobid_metadata.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/fatcat_tools/importers/grobid_metadata.py b/python/fatcat_tools/importers/grobid_metadata.py index 5ec6cc3c..a811c856 100644 --- a/python/fatcat_tools/importers/grobid_metadata.py +++ b/python/fatcat_tools/importers/grobid_metadata.py @@ -104,7 +104,7 @@ class GrobidMetadataImporter(EntityImporter): if raw.get('date'): try: year = int(raw['date'].strip()[:4]) - except: + except (IndexError, ValueError): pass for key in ('volume', 'url', 'issue', 'publisher'): if raw.get(key): |