From 1326dfe243e0f248ac8f33e46af19783c24a4ed5 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 25 Oct 2013 08:55:37 +0530 Subject: [PATCH] ... --- src/calibre/db/backend.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/db/backend.py b/src/calibre/db/backend.py index 1b87da8548..259297ab20 100644 --- a/src/calibre/db/backend.py +++ b/src/calibre/db/backend.py @@ -317,8 +317,8 @@ class DB(object): if iswindows and len(self.library_path) + 4*self.PATH_LIMIT + 10 > 259: raise ValueError(_( - 'Path to library (%s) too long. Must be less than' - ' %d characters.')%(self.library_path, 259-4*self.PATH_LIMIT-10)) + 'Path to library ({0}) too long. Must be less than' + ' {1} characters.').format(self.library_path, 259-4*self.PATH_LIMIT-10)) exists = self._exists = os.path.exists(self.dbpath) if not exists: # Be more strict when creating new libraries as the old calculation