diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2020-11-29 22:20:02 +0100 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2020-11-29 22:20:02 +0100 |
commit | 1c19c5fd68e86473c8f7ee4dbbc6929bb9ee8199 (patch) | |
tree | a2300e295bb94cbabd9bb5690589a631897a89e5 /fuzzycat/verify.py | |
parent | 051c685798731fc80e071bc68397655fdf4d1c89 (diff) | |
download | fuzzycat-1c19c5fd68e86473c8f7ee4dbbc6929bb9ee8199.tar.gz fuzzycat-1c19c5fd68e86473c8f7ee4dbbc6929bb9ee8199.zip |
address possible None value
Diffstat (limited to 'fuzzycat/verify.py')
-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 2eff873..9848735 100644 --- a/fuzzycat/verify.py +++ b/fuzzycat/verify.py @@ -182,7 +182,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", []) or []) and "datacite" in (b.get("extra", []) or []): whitelist = set([ "HasPart", "HasVersion", |