Handle when active config is empty

This commit is contained in:
Logan Cusano
2025-05-26 00:23:37 -04:00
parent ec13c38dea
commit f49472c651

View File

@@ -81,8 +81,11 @@ def find_token_in_active_clients(target_token: str) -> bool:
True if the token is found in any ActiveClient, False otherwise.
"""
for client_id in current_app.active_clients:
if current_app.active_clients[client_id].active_token.token == target_token:
return True
try:
if current_app.active_clients[client_id].active_token.token == target_token:
return True
except Exception as e:
pass
return False