diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2020-11-26 21:21:10 +0100 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2020-11-26 21:21:10 +0100 |
commit | fa547bd4d49bd4316c43957bdafd00e2c6813a02 (patch) | |
tree | 53b3d1326ff72d792ebd0bca9dfc8855056b67aa | |
parent | 5962f27aced29bc40efe82113fe057e302b68fa4 (diff) | |
download | fuzzycat-fa547bd4d49bd4316c43957bdafd00e2c6813a02.tar.gz fuzzycat-fa547bd4d49bd4316c43957bdafd00e2c6813a02.zip |
extra might be None
-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([ |