From 3fa4149bb05455bd565be836b27bbd7feb52f3e2 Mon Sep 17 00:00:00 2001 From: blitzmann Date: Mon, 5 Oct 2020 23:15:42 -0400 Subject: [PATCH] Fix reference issue --- cps/tasks/convert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/tasks/convert.py b/cps/tasks/convert.py index 8179de9f..62f95f3d 100644 --- a/cps/tasks/convert.py +++ b/cps/tasks/convert.py @@ -53,7 +53,7 @@ class TaskConvert(CalibreTask): def _convert_ebook_format(self): error_message = None - local_session = db.CalibreDB() + local_session = db.CalibreDB().session file_path = self.file_path book_id = self.bookid format_old_ext = u'.' + self.settings['old_book_format'].lower()