WIP: Migration to async_pymongo
This commit is contained in:
@@ -28,8 +28,8 @@ try:
|
||||
)
|
||||
mail_sender.ehlo()
|
||||
logger.info("Initialized SMTP connection")
|
||||
except Exception as exp:
|
||||
logger.error("Could not initialize SMTP connection to: %s", exp)
|
||||
except Exception as exc:
|
||||
logger.error("Could not initialize SMTP connection to: %s", exc)
|
||||
print_exc()
|
||||
|
||||
try:
|
||||
@@ -37,5 +37,5 @@ try:
|
||||
configGet("login", "mailer", "smtp"), configGet("password", "mailer", "smtp")
|
||||
)
|
||||
logger.info("Successfully initialized mailer")
|
||||
except Exception as exp:
|
||||
logger.error("Could not login into provided SMTP account due to: %s", exp)
|
||||
except Exception as exc:
|
||||
logger.error("Could not login into provided SMTP account due to: %s", exc)
|
||||
|
Reference in New Issue
Block a user