4415: Editing ID format in preferences can throw exception

svn: r16227
This commit is contained in:
Doug Blank 2010-11-23 04:01:02 +00:00
parent 9f629ad6f9
commit d9b544c17a

View File

@ -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: