projects
/
rss2email.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81eb03b
)
rss2email: reorder NoValidEncodingError superclasses
author
W. Trevor King
<wking@tremily.us>
Mon, 12 Nov 2012 20:54:19 +0000
(15:54 -0500)
committer
W. 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
patch
|
blob
|
history
diff --git
a/rss2email.py
b/rss2email.py
index cb8970ec8376a709200f3c80825201e24b8fa22a..8066592c3e3a8c9af7cff018960f1773b13486b1 100755
(executable)
--- a/
rss2email.py
+++ b/
rss2email.py
@@
-99,7
+99,7
@@
class TimeoutError (RSS2EmailError):
self.time_limited_function = time_limited_function
-class NoValidEncodingError (
ValueError, RSS2Email
Error):
+class NoValidEncodingError (
RSS2EmailError, Value
Error):
def __init__(self, string, encodings):
message = 'no valid encoding for {} in {}'.format(string, encodings)
super(NoValidEncodingError, self).__init__(message=message)