From: W. Trevor King Date: Tue, 19 Mar 2013 23:58:09 +0000 (-0400) Subject: error: Fix super calls for SMTPAuthenticationError, etc. X-Git-Tag: v3.3~10 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a88738f;p=rss2email.git 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 --- 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)