forked from CGM_Public/pretix_original
Log unidentified errors from async tasks
This commit is contained in:
@@ -116,6 +116,7 @@ class AsyncAction:
|
|||||||
return redirect(self.get_error_url())
|
return redirect(self.get_error_url())
|
||||||
|
|
||||||
def get_error_message(self, exception):
|
def get_error_message(self, exception):
|
||||||
|
logger.error('Unexpected exception: %r' % exception)
|
||||||
return _('An unexpected error has occured')
|
return _('An unexpected error has occured')
|
||||||
|
|
||||||
def get_success_message(self, value):
|
def get_success_message(self, value):
|
||||||
|
|||||||
Reference in New Issue
Block a user