rss2email: reorder NoValidEncodingError superclasses
authorW. Trevor King <wking@tremily.us>
Mon, 12 Nov 2012 20:54:19 +0000 (15:54 -0500)
committerW. Trevor King <wking@tremily.us>
Mon, 12 Nov 2012 20:54:19 +0000 (15:54 -0500)
This avoids:

  TypeError: NoValidEncodingError does not take keyword arguments

rss2email.py

index cb8970ec8376a709200f3c80825201e24b8fa22a..8066592c3e3a8c9af7cff018960f1773b13486b1 100755 (executable)
@@ -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)