From 4d898564bb8923fc30a32bf763f11dca2badb456 Mon Sep 17 00:00:00 2001 From: Guillaume De Saint Martin Date: Tue, 8 Oct 2024 14:57:16 +0200 Subject: [PATCH] [WebInterface] don't block for 120s on version check fetch issues --- Services/Interfaces/web_interface/api/metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Services/Interfaces/web_interface/api/metadata.py b/Services/Interfaces/web_interface/api/metadata.py index 1e85aa91b..0f9b771a3 100644 --- a/Services/Interfaces/web_interface/api/metadata.py +++ b/Services/Interfaces/web_interface/api/metadata.py @@ -43,7 +43,7 @@ async def fetch_upgrade_version(): updater = octobot_api.get_updater() return await updater.get_latest_version() if updater and await updater.should_be_updated() else None - return json.dumps(interfaces.run_in_bot_main_loop(fetch_upgrade_version())) + return json.dumps(interfaces.run_in_bot_main_loop(fetch_upgrade_version(), timeout=5)) @blueprint.route("/user_feedback")