From ff46af9c495b4cb14f8b253c707bae7f07dcfd6b Mon Sep 17 00:00:00 2001 From: gjutras Date: Sun, 10 Jul 2022 17:23:20 -0400 Subject: [PATCH] fix indentation and spaces --- cps/helper.py | 12 ++++++------ cps/tasks/convert.py | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/cps/helper.py b/cps/helper.py index e7d8fcf0..6ae78a0e 100755 --- a/cps/helper.py +++ b/cps/helper.py @@ -112,9 +112,9 @@ def convert_book_format(book_id, calibre_path, old_book_format, new_book_format, def send_test_mail(ereader_mail, user_name): for email in ereader_mail.split(','): email = email.strip() - WorkerThread.add(user_name, TaskEmail(_(u'Calibre-Web test e-mail'), None, None, - config.get_mail_settings(), email, N_(u"Test e-mail"), - _(u'This e-mail has been sent via Calibre-Web.'))) + WorkerThread.add(user_name, TaskEmail(_(u'Calibre-Web test e-mail'), None, None, + config.get_mail_settings(), email, N_(u"Test e-mail"), + _(u'This e-mail has been sent via Calibre-Web.'))) return @@ -226,9 +226,9 @@ def send_mail(book_id, book_format, convert, ereader_mail, calibrepath, user_id) email_text = N_(u"%(book)s send to E-Reader", book=link) for email in ereader_mail.split(','): email = email.strip() - WorkerThread.add(user_id, TaskEmail(_(u"Send to E-Reader"), book.path, converted_file_name, - config.get_mail_settings(), email, - email_text, _(u'This e-mail has been sent via Calibre-Web.'))) + WorkerThread.add(user_id, TaskEmail(_(u"Send to E-Reader"), book.path, converted_file_name, + config.get_mail_settings(), email, email_text, + _(u'This e-mail has been sent via Calibre-Web.'))) return return _(u"The requested file could not be read. Maybe wrong permissions?") diff --git a/cps/tasks/convert.py b/cps/tasks/convert.py index 7ce852e4..540394ee 100755 --- a/cps/tasks/convert.py +++ b/cps/tasks/convert.py @@ -96,11 +96,11 @@ class TaskConvert(CalibreTask): self.results["path"], filename, self.settings, - email, + email, EmailText, self.settings['body'], internal=True) - ) + ) except Exception as ex: return self._handleError(str(ex))