From 9b5e01c3196bcc42ddd71ac9ec40b155225e6605 Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Thu, 2 Jul 2020 12:45:45 -0700 Subject: [PATCH] Fix logger for email notification exception --- plexpy/notifiers.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plexpy/notifiers.py b/plexpy/notifiers.py index dff085a6..952c7e7e 100644 --- a/plexpy/notifiers.py +++ b/plexpy/notifiers.py @@ -1399,8 +1399,7 @@ class EMAIL(Notifier): success = True except Exception as e: - logger.error("Tautulli Notifiers :: {name} notification failed: {e}".format( - name=self.NAME, e=str(e).decode('utf-8'))) + logger.error("Tautulli Notifiers :: %s notification failed: %s", self.NAME, e) finally: if mailserver: