Ignore non used parallele requestor for SSO
This commit is contained in:
parent
bc08402dab
commit
54e4314305
@ -79,14 +79,15 @@ class User(models.Model):
|
|||||||
async_list.append(ticket.logout(request, session))
|
async_list.append(ticket.logout(request, session))
|
||||||
ticket.delete()
|
ticket.delete()
|
||||||
for future in async_list:
|
for future in async_list:
|
||||||
try:
|
if future:
|
||||||
future.result()
|
try:
|
||||||
except Exception as error:
|
future.result()
|
||||||
messages.add_message(
|
except Exception as error:
|
||||||
request,
|
messages.add_message(
|
||||||
messages.WARNING,
|
request,
|
||||||
_(u'Error during service logout %r') % error
|
messages.WARNING,
|
||||||
)
|
_(u'Error during service logout %r') % error
|
||||||
|
)
|
||||||
|
|
||||||
def get_ticket(self, ticket_class, service, service_pattern, renew):
|
def get_ticket(self, ticket_class, service, service_pattern, renew):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user