Correct an issue with except

This commit is contained in:
nicolargo 2022-05-24 12:14:45 +02:00
parent ccd56bf10c
commit 197c98077f
1 changed files with 1 additions and 2 deletions

View File

@ -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'