forked from MarseyWorld/MarseyWorld
Amend c95e33831: even fewer globals than expected.
parent
c95e33831c
commit
35fd90c9ca
|
@ -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 {}
|
||||
|
|
Loading…
Reference in New Issue