From: W. Trevor King Date: Mon, 12 Nov 2012 20:54:19 +0000 (-0500) Subject: rss2email: reorder NoValidEncodingError superclasses X-Git-Tag: v3.0~71 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4777aae0904ba3fbd749827f889a559ca09e0d0f;p=rss2email.git rss2email: reorder NoValidEncodingError superclasses This avoids: TypeError: NoValidEncodingError does not take keyword arguments --- diff --git a/rss2email.py b/rss2email.py index cb8970e..8066592 100755 --- a/rss2email.py +++ b/rss2email.py @@ -99,7 +99,7 @@ class TimeoutError (RSS2EmailError): self.time_limited_function = time_limited_function -class NoValidEncodingError (ValueError, RSS2EmailError): +class NoValidEncodingError (RSS2EmailError, ValueError): def __init__(self, string, encodings): message = 'no valid encoding for {} in {}'.format(string, encodings) super(NoValidEncodingError, self).__init__(message=message)