mozilla-services / autopush

Python Web Push Server used by Mozilla
https://autopush.readthedocs.io/
Mozilla Public License 2.0
215 stars 34 forks source link

Don't report non-exceptions as `failure()` #1388

Closed jrconlin closed 4 years ago

jrconlin commented 4 years ago

In base, write_error reports non exception errors as self.log.failure which will raise a "NoCurrentExceptionError".

This should probably just return a self.log.error()