Fix error on external_auth djangostore

Don't raise an exception when an association is not found.
This commit is contained in:
Carlos Andrés Rocha
2013-11-07 18:37:09 -05:00
parent bd5abc89ce
commit 28bc2e232f

View File

@@ -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