Commit e221ad8d authored by Ask Hjorth Larsen's avatar Ask Hjorth Larsen
Browse files

be more robust to unknown keywords

parent 76087402
......@@ -206,8 +206,15 @@ def register_octopus_keywords(pew, category, kwargs):
# How do we get the metadata type?
normalized_name = 'x_octopus_%s_%s' % (category, keyword)
name, value = regularize_metadata_entry(normalized_name, kwargs[keyword])
pew.addValue(name, value)
val = kwargs[keyword]
name, value = regularize_metadata_entry(normalized_name, val)
except KeyError: # unknown normalized_name
# We can't crash on unknown keywords because we must support
# versions old and new alike.
pew.addValue(name, value)
def parse(fname, fd):
Supports Markdown
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