Don't crash if name.txt doesn't exist; this can happen if you try to get name before you open a database

svn: r16666
This commit is contained in:
Doug Blank 2011-02-18 19:07:32 +00:00
parent 5eb080038b
commit 8715e15b95

View File

@ -1604,5 +1604,5 @@ class DbBsddbRead(DbReadBase, Callback):
name_file.close()
except (OSError, IOError), msg:
self.__log_error()
raise Errors.DbError(msg)
name = None
return name