From 197c98077f892f79458a9f41bab81c8dd8e29f2e Mon Sep 17 00:00:00 2001 From: nicolargo Date: Tue, 24 May 2022 12:14:45 +0200 Subject: [PATCH] Correct an issue with except --- glances/outdated.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/glances/outdated.py b/glances/outdated.py index b44e319b..b5816b39 100644 --- a/glances/outdated.py +++ b/glances/outdated.py @@ -35,11 +35,10 @@ from glances.logger import logger try: from packaging.version import Version PACKAGING_IMPORT = True -except ModuleNotFoundError as e: +except Exception as e: logger.error("Unable to import 'packaging' module ({}). Glances cannot check for updates.".format(e)) PACKAGING_IMPORT = False - PYPI_API_URL = 'https://pypi.python.org/pypi/Glances/json'