Commit 0aa2a472 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

storage_id can be missing.

parent d478cfab
...@@ -125,7 +125,7 @@ def _getPropertyList(document, acquire=True): ...@@ -125,7 +125,7 @@ def _getPropertyList(document, acquire=True):
if property_id in bad_property_list: if property_id in bad_property_list:
continue continue
# we care already stored property only # we care already stored property only
elif (x['storage_id'] or property_id) not in document_dict: elif (x.get('storage_id') or property_id) not in document_dict:
continue continue
# we don't want acquired properties without acquisition_mask_value # we don't want acquired properties without acquisition_mask_value
elif x.has_key('acquisition_base_category') and not x.get('acquisition_mask_value', 0): elif x.has_key('acquisition_base_category') and not x.get('acquisition_mask_value', 0):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment