Fix error on external_auth djangostore
Don't raise an exception when an association is not found.
This commit is contained in:
@@ -87,7 +87,7 @@ class DjangoOpenIDStore(OpenIDStore):
|
||||
cache.delete(key)
|
||||
removed = True
|
||||
else:
|
||||
assoc = associations.pop(handle)
|
||||
assoc = associations.pop(handle, None)
|
||||
if assoc:
|
||||
cache.set(key, associations, DEFAULT_ASSOCIATIONS_TIMEOUT)
|
||||
removed = True
|
||||
|
||||
Reference in New Issue
Block a user