From a88738f9905f306b989ff62983518214c5018c0f Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 19 Mar 2013 19:58:09 -0400 Subject: [PATCH] error: Fix super calls for SMTPAuthenticationError, etc. Fix copy/paste errors where super() calls used the wrong class name (it should match the class in which the method is defined) for: * SMTPAuthenticationError.__init__ * ProcessingError.__init__ * OPMLReadError.__init__ Reported-by: Matt Bordignon Signed-off-by: W. Trevor King --- rss2email/error.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rss2email/error.py b/rss2email/error.py index 1d17f46..e09e73f 100644 --- a/rss2email/error.py +++ b/rss2email/error.py @@ -79,7 +79,7 @@ class SMTPAuthenticationError (SMTPConnectionError): message = ( 'could not authenticate with mail server {} as user {}'.format( server, username)) - super(SMTPConnectionError, self).__init__( + super(SMTPAuthenticationError, self).__init__( server=server, message=message) self.server = server self.username = username @@ -134,7 +134,7 @@ class ProcessingError (FeedError): def __init__(self, parsed, feed, **kwargs): if message is None: message = 'error processing feed {}'.format(feed) - super(FeedError, self).__init__(feed=feed, message=message) + super(ProcessingError, self).__init__(feed=feed, message=message) self.parsed = parsed def log(self): @@ -220,4 +220,4 @@ class FeedIndexError (FeedsError, IndexError): class OPMLReadError (RSS2EmailError): def __init__(self, **kwargs): message = 'error reading OPML' - super(RSS2EmailError, self).__init__(message=message, **kwargs) + super(OPMLReadError, self).__init__(message=message, **kwargs) -- 2.26.2