From 169b5a72d3a7a5cc2c8ebdecf9402e6cf9e53dab Mon Sep 17 00:00:00 2001 From: Timo Kankare Date: Mon, 12 Sep 2016 16:31:46 +0300 Subject: [PATCH] Fixed correct exception in POP3Backend. Removed unused _conn variable from Account. --- Mailnag/backends/pop3.py | 4 ++-- Mailnag/common/accounts.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Mailnag/backends/pop3.py b/Mailnag/backends/pop3.py index 0b96454..89e7d16 100644 --- a/Mailnag/backends/pop3.py +++ b/Mailnag/backends/pop3.py @@ -120,9 +120,9 @@ class POP3Backend: def notify_next_change(self, callback=None, timeout=None): - raise NotImplemented("POP3 does not support notifications") + raise NotImplementedError("POP3 does not support notifications") def cancel_notifications(self): - raise NotImplemented("POP3 does not support notifications") + raise NotImplementedError("POP3 does not support notifications") diff --git a/Mailnag/common/accounts.py b/Mailnag/common/accounts.py index 19e5d12..2033044 100644 --- a/Mailnag/common/accounts.py +++ b/Mailnag/common/accounts.py @@ -64,7 +64,6 @@ class Account: self.idle = idle # bool self.folders = folders self.backend = backend - self._conn = None def open(self, reopen = True):