This commit is contained in:
Kovid Goyal 2013-10-25 08:55:37 +05:30
parent 9ea3b6b398
commit 1326dfe243

View File

@ -317,8 +317,8 @@ class DB(object):
if iswindows and len(self.library_path) + 4*self.PATH_LIMIT + 10 > 259: if iswindows and len(self.library_path) + 4*self.PATH_LIMIT + 10 > 259:
raise ValueError(_( raise ValueError(_(
'Path to library (%s) too long. Must be less than' 'Path to library ({0}) too long. Must be less than'
' %d characters.')%(self.library_path, 259-4*self.PATH_LIMIT-10)) ' {1} characters.').format(self.library_path, 259-4*self.PATH_LIMIT-10))
exists = self._exists = os.path.exists(self.dbpath) exists = self._exists = os.path.exists(self.dbpath)
if not exists: if not exists:
# Be more strict when creating new libraries as the old calculation # Be more strict when creating new libraries as the old calculation