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()