From 9295e97fa6bc1929ba6745ab17eeb28a451149b3 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sun, 18 Sep 2016 09:30:02 +0200 Subject: formatRefs: Fix page numbers This time for real. --- tools/formatRefs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/formatRefs.py b/tools/formatRefs.py index 2cd2f9a..303de05 100755 --- a/tools/formatRefs.py +++ b/tools/formatRefs.py @@ -56,7 +56,7 @@ def formatParent (s, g, n, useName = True): if start: try: num = int (end)-int (start) - except ValueError: + except (ValueError, TypeError): num = 1 if end and num >= 1: ret.append ('pp. {}–{}'.format (start, end)) -- cgit v1.2.3