diff options
-rw-r--r-- | fuzzycat/verify.py | 2 |
1 files changed, 1 insertions, 1 deletions
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([ |