diff --git a/src/calibre/gui2/main.py b/src/calibre/gui2/main.py index 96c8c8d9a4..2b64030e2f 100644 --- a/src/calibre/gui2/main.py +++ b/src/calibre/gui2/main.py @@ -1100,7 +1100,7 @@ class Main(MainWindow, Ui_MainWindow): d.exec_() newloc = self.database_path self.database_path = newloc - prefs().set('database_path', self.database_path) + prefs.set('database_path', self.database_path) except Exception, err: traceback.print_exc() d = error_dialog(self, _('Could not move database'), unicode(err))