From 668b7027350ae30aa4a15a7be470787d58145afe Mon Sep 17 00:00:00 2001 From: maike Date: Sun, 12 Jul 2020 16:50:28 +0200 Subject: [PATCH] [email] Shorter way to raise an exception --- kibicara/platforms/email/bot.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kibicara/platforms/email/bot.py b/kibicara/platforms/email/bot.py index e5f5f6b..e78a17e 100644 --- a/kibicara/platforms/email/bot.py +++ b/kibicara/platforms/email/bot.py @@ -44,9 +44,7 @@ class EmailBot(Censor): body=message.text, ) except (ConnectionRefusedError, SMTPException): - logger.error( - "Sending subscription confirmation email failed.", exc_info=True - ) + logger.exception("Sending subscription confirmation email failed.") spawner = Spawner(Email, EmailBot)