fix(linting): fix quotes
This commit is contained in:
parent
d9fbee3b9c
commit
626ef14e1e
2 changed files with 4 additions and 3 deletions
|
|
@ -667,7 +667,7 @@ class EmailAccount(Document):
|
|||
try:
|
||||
email_server = self.get_incoming_server(in_receive=True)
|
||||
except Exception:
|
||||
self.log_error(title=_("Error while connecting to email account {0}").format(self.name))
|
||||
self.log_error("Email Connection Error")
|
||||
|
||||
if not email_server:
|
||||
return
|
||||
|
|
@ -679,7 +679,8 @@ class EmailAccount(Document):
|
|||
message = safe_encode(message)
|
||||
email_server.imap.append("Sent", "\\Seen", imaplib.Time2Internaldate(time.time()), message)
|
||||
except Exception:
|
||||
self.log_error(title="EmailAccount.append_email_to_sent_folder")
|
||||
self.log_error("Unable to add to Sent folder")
|
||||
|
||||
|
||||
@frappe.whitelist()
|
||||
def get_append_to(
|
||||
|
|
|
|||
|
|
@ -170,7 +170,7 @@ def flush(from_test=False):
|
|||
is_background_task = not from_test
|
||||
func(email_queue_name=row.name, is_background_task=is_background_task)
|
||||
except Exception:
|
||||
frappe.get_doc('Email Queue', row.name).log_error()
|
||||
frappe.get_doc("Email Queue", row.name).log_error()
|
||||
|
||||
|
||||
def get_queue():
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue