From 752be8f56bdc8062ed760a495c719d9ca171d222 Mon Sep 17 00:00:00 2001 From: Guillaume De Saint Martin Date: Fri, 10 Jan 2025 16:53:10 +0100 Subject: [PATCH] [Web] handle product fetch error --- Services/Interfaces/web_interface/controllers/community.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Services/Interfaces/web_interface/controllers/community.py b/Services/Interfaces/web_interface/controllers/community.py index 7f593a437..709d14246 100644 --- a/Services/Interfaces/web_interface/controllers/community.py +++ b/Services/Interfaces/web_interface/controllers/community.py @@ -31,6 +31,7 @@ def community(): try: models.wait_for_login_if_processing() logged_in_email = authenticator.get_logged_in_email() + all_user_bots = models.get_all_user_bots() except (authentication.AuthenticationRequired, authentication.UnavailableError): pass except Exception as e: @@ -45,7 +46,7 @@ def community(): is_donor=bool(authenticator.user_account.supports.is_donor()), strategies=strategies, current_bots_stats=models.get_current_octobots_stats(), - all_user_bots=models.get_all_user_bots(), + all_user_bots=all_user_bots, selected_user_bot=models.get_selected_user_bot(), can_logout=models.can_logout(), can_select_bot=models.can_select_bot(),