From d9b544c17a4437bd740f1e2a82a7e0c9059c93fe Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Tue, 23 Nov 2010 04:01:02 +0000 Subject: [PATCH] 4415: Editing ID format in preferences can throw exception svn: r16227 --- src/gen/db/read.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gen/db/read.py b/src/gen/db/read.py index 6bbdace68..6536a181c 100644 --- a/src/gen/db/read.py +++ b/src/gen/db/read.py @@ -1069,6 +1069,8 @@ class DbBsddbRead(DbReadBase, Callback): str_ = val % 1 except TypeError: # missing conversion specifier prefix_var = val + "%d" + except ValueError: # incomplete format + prefix_var = default+"%04d" else: prefix_var = val # OK as given else: