4415: Editing ID format in preferences can throw exception

svn: r16228
This commit is contained in:
Doug Blank 2010-11-23 04:06:56 +00:00
parent cd53f3a842
commit 5705dfe107

View File

@ -979,6 +979,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: