If the notes don't contain JSON, add the string to the notes key of _meta

This commit is contained in:
Matt Harris 2016-01-24 01:10:47 -08:00
parent e5493fa631
commit f8e73714f6

View file

@ -175,7 +175,10 @@ def main_list(options):
metadata = json.loads(description)
except TypeError:
metadata = {}
# print metadata
except ValueError:
metadata = {
'notes': description
}
if 'groups' in metadata:
# print metadata