More PEP8 fixes for get_email

This commit is contained in:
Garret Wassermann 2017-12-06 02:59:50 -05:00
parent 9340e149d5
commit 47f92eba1e

View File

@ -205,9 +205,9 @@ def process_queue(q, logger):
try: try:
server.login(q.email_box_user or server.login(q.email_box_user or
settings.QUEUE_EMAIL_BOX_USER, settings.QUEUE_EMAIL_BOX_USER,
q.email_box_pass or q.email_box_pass or
settings.QUEUE_EMAIL_BOX_PASSWORD) settings.QUEUE_EMAIL_BOX_PASSWORD)
server.select(q.email_box_imap_folder) server.select(q.email_box_imap_folder)
except imaplib.IMAP.abort: except imaplib.IMAP.abort:
logger.error("IMAP login failed. Check that the server is accessible and that the username and password are correct.") logger.error("IMAP login failed. Check that the server is accessible and that the username and password are correct.")