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