Skip tags without expanded value

pull/24/head
Alexandre Dulaunoy 2016-06-21 07:35:55 +02:00
parent 71207076d8
commit 150e7630dc
1 changed files with 2 additions and 1 deletions

View File

@ -119,7 +119,8 @@ for taxonomy in taxonomies:
else:
print (machineTag(namespace=namespace, predicate=e['predicate'], value=v['value']))
if args.e:
print ("--> " + machineTag(namespace=namespace, predicate=expanded, value=v['expanded']))
if'expanded' in v:
print ("--> " + machineTag(namespace=namespace, predicate=expanded, value=v['expanded']))
if args.a:
print (doc)