summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-09-24 09:15:21 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-09-24 09:15:21 -0700
commitf546a528332b25dff3fa5b6ae9d178fd43bfdcf2 (patch)
tree93876c9b30537cce85c67909a8cf8fb50b5c6fb4
parent50051beb7635711f13346ade947ed00e55ee832c (diff)
downloadfatcat-f546a528332b25dff3fa5b6ae9d178fd43bfdcf2.tar.gz
fatcat-f546a528332b25dff3fa5b6ae9d178fd43bfdcf2.zip
fix NoneType python error in transform_release
-rwxr-xr-xextra/elasticsearch/transform_release.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/extra/elasticsearch/transform_release.py b/extra/elasticsearch/transform_release.py
index 2f67977e..ae9a709e 100755
--- a/extra/elasticsearch/transform_release.py
+++ b/extra/elasticsearch/transform_release.py
@@ -59,7 +59,7 @@ def transform(m):
t['file_in_webarchive'] = in_wa
t['file_in_ia'] = in_ia
- extra = m.get('extra')
+ extra = m.get('extra', dict())
if extra:
t['in_shadow'] = extra.get('in_shadow')
t['any_abstract'] = bool(t.get('abstracts'))