mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +00:00
Fixed localization and error reporting with exceptions thrown in celery
This commit is contained in:
@@ -48,7 +48,7 @@ class AsyncAction:
|
||||
'ready': res.ready()
|
||||
}
|
||||
if res.ready():
|
||||
if res.successful():
|
||||
if res.successful() and not isinstance(res.info, Exception):
|
||||
smes = self.get_success_message(res.info)
|
||||
if smes:
|
||||
messages.success(self.request, smes)
|
||||
|
||||
Reference in New Issue
Block a user