Log unidentified errors from async tasks

This commit is contained in:
Raphael Michel
2016-03-21 16:50:44 +01:00
parent 047e5bb067
commit 77749aaec3

View File

@@ -116,6 +116,7 @@ class AsyncAction:
return redirect(self.get_error_url())
def get_error_message(self, exception):
logger.error('Unexpected exception: %r' % exception)
return _('An unexpected error has occured')
def get_success_message(self, value):