From fa547bd4d49bd4316c43957bdafd00e2c6813a02 Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Thu, 26 Nov 2020 21:21:10 +0100 Subject: extra might be None --- fuzzycat/verify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fuzzycat/verify.py b/fuzzycat/verify.py index d7b2d62..ffd0f47 100644 --- a/fuzzycat/verify.py +++ b/fuzzycat/verify.py @@ -171,7 +171,7 @@ def compare(a, b): # beware: we have versions and "isPartOf", e.g. https://api.fatcat.wiki/v0/release/ybxygpeypbaq5pfrztu3z2itw4 # TODO: does glom help? # ... - if "datacite" in a.get("extra") and "datacite" in b.get("extra"): + if "datacite" in a.get("extra", {}) and "datacite" in b.get("extra", {}): # Relevant relationType values: IsSupplementTo, IsSupplementedBy, # HasVersion, IsVersionOf, IsNewVersionOf, IsPreviousVersionOf whitelist = set([ -- cgit v1.2.3