diff options
-rwxr-xr-x | tools/formatRefs.py | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |