fix 500 error when resetting password
parent
50e80874b7
commit
887ab766a5
|
@ -9,11 +9,6 @@ import user_agents
|
|||
import time
|
||||
|
||||
def calc_users(v):
|
||||
# Some globals we expect aren't available when rendering error pages
|
||||
if (not g or not hasattr(g, 'agent')
|
||||
or not session or not ('session_id' in session)):
|
||||
return ''
|
||||
|
||||
loggedin = cache.get(f'{SITE}_loggedin') or {}
|
||||
loggedout = cache.get(f'{SITE}_loggedout') or {}
|
||||
timestamp = int(time.time())
|
||||
|
|
Loading…
Reference in New Issue