Commit 28bc2e23 by Carlos Andrés Rocha

Fix error on external_auth djangostore

Don't raise an exception when an association is not found.
parent bd5abc89
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment