From 4777aae0904ba3fbd749827f889a559ca09e0d0f Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 12 Nov 2012 15:54:19 -0500 Subject: [PATCH] rss2email: reorder NoValidEncodingError superclasses This avoids: TypeError: NoValidEncodingError does not take keyword arguments --- rss2email.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.26.2