Merge pull request #1615 from rocha/fix-external_auth-djangostore

Fix error on external_auth djangostore
This commit is contained in:
Carlos Andrés Rocha
2013-11-08 10:26:51 -08:00

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