From 5f73a9d89f7c38e8f7c98bcdf9ed425bea7b6325 Mon Sep 17 00:00:00 2001 From: Ryan Clary <9618975+mrclary@users.noreply.github.com> Date: Wed, 22 Nov 2023 11:28:44 -0800 Subject: [PATCH] Fix KeyError issue with format. --- spyder/workers/updates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spyder/workers/updates.py b/spyder/workers/updates.py index 2b1a914e7f0..b81d6598392 100644 --- a/spyder/workers/updates.py +++ b/spyder/workers/updates.py @@ -154,7 +154,7 @@ def start(self): error_msg = CONNECT_ERROR_MSG logger.debug(err, stack_info=True) except HTTPError as err: - error_msg = HTTP_ERROR_MSG.format(page.status_code) + error_msg = HTTP_ERROR_MSG.format(status_code=page.status_code) logger.debug(err, stack_info=True) except Exception as err: error = traceback.format_exc()