Commits

Anonymous committed c2898b4

When using generators and HTTPRedirect, beforeFinalize can get called twice ... Making the sessionfilter resilient to that.

Comments (0)

Files changed (1)

cherrypy/lib/filter/sessionfilter.py

             self._clean()
         
         sess = cherrypy.request._session
-        if not sess.sessionStorage:
+        if not getattr(sess, 'sessionStorage', None):
             # Sessions are not enabled: do nothing
             return