From 012ef56033b4bc7f6992b2238f5100b2950d4d2f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 28 Feb 2011 22:45:28 -0700 Subject: [PATCH] ... --- src/calibre/library/sqlite.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/library/sqlite.py b/src/calibre/library/sqlite.py index 063ed4720b..1b595435ce 100644 --- a/src/calibre/library/sqlite.py +++ b/src/calibre/library/sqlite.py @@ -222,11 +222,11 @@ class DBThread(Thread): except Exception, err: ok, res = False, (err, traceback.format_exc()) else: - func = getattr(self.conn, func) + bfunc = getattr(self.conn, func) try: for i in range(3): try: - ok, res = True, func(*args, **kwargs) + ok, res = True, bfunc(*args, **kwargs) break except OperationalError, err: # Retry if unable to open db file