Show More
@@ -188,6 +188,9 b' def warn_format_error(method, self, *args, **kwargs):' | |||
|
188 | 188 | """decorator for warning on failed format call""" |
|
189 | 189 | try: |
|
190 | 190 | r = method(self, *args, **kwargs) |
|
191 | except NotImplementedError as e: | |
|
192 | # don't warn on NotImplementedErrors | |
|
193 | return None | |
|
191 | 194 | except Exception as e: |
|
192 | 195 | warn("Exception in %s formatter: %s" % (self.format_type, e)) |
|
193 | 196 | return None |
General Comments 0
You need to be logged in to leave comments.
Login now