diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-09-24 09:15:21 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-09-24 09:15:21 -0700 |
commit | f546a528332b25dff3fa5b6ae9d178fd43bfdcf2 (patch) | |
tree | 93876c9b30537cce85c67909a8cf8fb50b5c6fb4 /extra/elasticsearch/transform_release.py | |
parent | 50051beb7635711f13346ade947ed00e55ee832c (diff) | |
download | fatcat-f546a528332b25dff3fa5b6ae9d178fd43bfdcf2.tar.gz fatcat-f546a528332b25dff3fa5b6ae9d178fd43bfdcf2.zip |
fix NoneType python error in transform_release
Diffstat (limited to 'extra/elasticsearch/transform_release.py')
-rwxr-xr-x | extra/elasticsearch/transform_release.py | 2 |
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')) |