1
0
mirror of https://github.com/django/django.git synced 2025-01-10 18:36:05 +00:00

Fixed #14093 -- Improved error message in the cache session backend.

Thanks stumbles for the patch.
This commit is contained in:
Aymeric Augustin 2012-10-28 12:40:10 +01:00
parent 785bf0d5a0
commit 98032f67c7

View File

@ -43,7 +43,9 @@ class SessionStore(SessionBase):
continue
self.modified = True
return
raise RuntimeError("Unable to create a new session key.")
raise RuntimeError(
"Unable to create a new session key. "
"It is likely that the cache is unavailable.")
def save(self, must_create=False):
if must_create: