summaryrefslogtreecommitdiff
path: root/tools/formatRefs.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/formatRefs.py')
-rwxr-xr-xtools/formatRefs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/formatRefs.py b/tools/formatRefs.py
index 303de05..f82705e 100755
--- a/tools/formatRefs.py
+++ b/tools/formatRefs.py
@@ -122,7 +122,7 @@ if __name__ == '__main__':
# where can we find it? (print)
# print from root to ref (i.e. magazine, volume, issue)
parents = reversed (list (getRecursiveAll (s, g, ref, s.isPartOf)))
- where = [formatParent (s, g, p) for p in parents]
+ where = list (filter (lambda x: x, [formatParent (s, g, p) for p in parents]))
thiswhere = formatParent (s, g, ref, False)
if thiswhere:
where.append (thiswhere)