From f546a528332b25dff3fa5b6ae9d178fd43bfdcf2 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 24 Sep 2018 09:15:21 -0700 Subject: fix NoneType python error in transform_release --- extra/elasticsearch/transform_release.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')) -- cgit v1.2.3