From 98032f67c725e257bd3c53374ff0ee22e2c77d7c Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Sun, 28 Oct 2012 12:40:10 +0100 Subject: [PATCH] Fixed #14093 -- Improved error message in the cache session backend. Thanks stumbles for the patch. --- django/contrib/sessions/backends/cache.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: