Ticket #14093: trac#14093-cache-session.diff

File trac#14093-cache-session.diff, 631 bytes (added by stumbles, 12 years ago)

Extend exception to explain that cache may be unavailable.

  • django/contrib/sessions/backends/cache.py

    diff --git a/django/contrib/sessions/backends/cache.py b/django/contrib/sessions/backends/cache.py
    index b66123b..a28a2c9 100644
    a b class SessionStore(SessionBase):  
    4343                continue
    4444            self.modified = True
    4545            return
    46         raise RuntimeError("Unable to create a new session key.")
     46        raise RuntimeError(
     47            "Unable to create a new session key. "
     48            "It is likely that the cache is unavailable.")
    4749
    4850    def save(self, must_create=False):
    4951        if must_create:
Back to Top