summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2012-10-28 12:40:10 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2012-10-28 12:40:10 +0100
commit98032f67c725e257bd3c53374ff0ee22e2c77d7c (patch)
treee76ccb061819df31df63684f0e3fb46de3d776e5
parent785bf0d5a04d8466091a701b732b0c6f87b548e4 (diff)
Fixed #14093 -- Improved error message in the cache session backend.
Thanks stumbles for the patch.
-rw-r--r--django/contrib/sessions/backends/cache.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/django/contrib/sessions/backends/cache.py b/django/contrib/sessions/backends/cache.py
index 0c7eb8d2cb..1b4906f923 100644
--- a/django/contrib/sessions/backends/cache.py
+++ b/django/contrib/sessions/backends/cache.py
@@ -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: