diff --git a/tools/machinetag.py b/tools/machinetag.py index 97d5838..c09b8bf 100755 --- a/tools/machinetag.py +++ b/tools/machinetag.py @@ -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)