To avoid:
>>> import rss2email.error
>>> rss2email.error.SMTPAuthenticationError(server='host', username='bob'))
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "./rss2email/error.py", line 85, in __init__
server=server, message=message)
File "./rss2email/error.py", line 67, in __init__
super(SMTPConnectionError, self).__init__(message=message)
TypeError: SMTPAuthenticationError does not take keyword arguments
Reported-by: Federico Churca-Torrusio <fchurca@fi.uba.ar>
Signed-off-by: W. Trevor King <wking@tremily.us>
v3.9 (unreleased)
+ * Fix an error with SMTPConnectionError inhertence order ("does not take keyword arguments").
* Add a new `smtp-ssl-protocol` setting, to select acceptable protocols for SMTP connections.
* Fix non-compliant User-Agent header for HTTP/1.1.
* Fix an error in the NoToEmailAddress invocation.
self.encodings = encodings
-class SMTPConnectionError (ValueError, RSS2EmailError):
+class SMTPConnectionError (RSS2EmailError, ValueError):
def __init__(self, server, message=None):
if message is None:
message = 'could not connect to mail server {}'.format(server)