If the notes don't contain JSON, add the string to the notes key of _meta
This commit is contained in:
parent
e5493fa631
commit
f8e73714f6
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue