From 35fd90c9ca205eafb3c20de11e6ba141199c416a Mon Sep 17 00:00:00 2001 From: TLSM Date: Sat, 15 Oct 2022 07:27:26 -0400 Subject: [PATCH] Amend c95e33831: even fewer globals than expected. --- files/helpers/wrappers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/wrappers.py b/files/helpers/wrappers.py index 3f2466108..1caf45d85 100644 --- a/files/helpers/wrappers.py +++ b/files/helpers/wrappers.py @@ -10,7 +10,7 @@ import time def calc_users(v): # Some globals we expect aren't available when rendering error pages - if not g.agent or not ('session_id' in session): + if not g or not g.agent or not session or not ('session_id' in session): return '' loggedin = cache.get(f'{SITE}_loggedin') or {}