web/application.py
branchstable
changeset 9355 19ab31ea6ffb
parent 9228 90b8c7a7e205
child 9402 2c48c091b6a2
child 9428 946aded614f3
--- a/web/application.py	Wed Dec 04 19:11:04 2013 +0100
+++ b/web/application.py	Tue Nov 12 17:10:16 2013 +0100
@@ -65,7 +65,7 @@
         self.session_time = vreg.config['http-session-time'] or None
         self.authmanager = vreg['components'].select('authmanager', vreg=vreg)
         interval = (self.session_time or 0) / 2.
-        if vreg.config.anonymous_user() is not None:
+        if vreg.config.anonymous_user()[0] is not None:
             self.cleanup_anon_session_time = vreg.config['cleanup-anonymous-session-time'] or 5 * 60
             assert self.cleanup_anon_session_time > 0
             if self.session_time is not None: