From e024a38bd29686eaa687e54cde1dc255ba6af52b Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 14 Aug 2020 16:09:32 -0700 Subject: entity updater: handle doi=None case better --- python/fatcat_tools/workers/changelog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') diff --git a/python/fatcat_tools/workers/changelog.py b/python/fatcat_tools/workers/changelog.py index b0dca6eb..c7b156f6 100644 --- a/python/fatcat_tools/workers/changelog.py +++ b/python/fatcat_tools/workers/changelog.py @@ -226,7 +226,7 @@ class EntityUpdatesWorker(FatcatWorker): return False # figshare - if doi and doi.startswith('10.6084/') or doi.startswith('10.25384/'): + if doi and (doi.startswith('10.6084/') or doi.startswith('10.25384/')): # don't crawl "most recent version" (aka "group") DOIs if not release.version: return False -- cgit v1.2.3