From 150e7630dcf4199618cdf1f1529de23c24f0d084 Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Tue, 21 Jun 2016 07:35:55 +0200 Subject: [PATCH] Skip tags without expanded value --- tools/machinetag.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)