error: Fix super calls for SMTPAuthenticationError, etc.
authorW. Trevor King <wking@tremily.us>
Tue, 19 Mar 2013 23:58:09 +0000 (19:58 -0400)
committerW. Trevor King <wking@tremily.us>
Wed, 20 Mar 2013 00:01:22 +0000 (20:01 -0400)
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 <matthew@bordignons.net>
Signed-off-by: W. Trevor King <wking@tremily.us>
rss2email/error.py

index 1d17f46436da33f47713af2295f33da4b457a98b..e09e73f0864dff0a7bb5b182cf7983467e8a3ccc 100644 (file)
@@ -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)