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