diff options
author | nicolargo <nicolas@nicolargo.com> | 2022-05-24 12:14:45 +0200 |
---|---|---|
committer | nicolargo <nicolas@nicolargo.com> | 2022-05-24 12:14:45 +0200 |
commit | 197c98077f892f79458a9f41bab81c8dd8e29f2e (patch) | |
tree | 543e035afcc62b72ee35d6aa0db7c5f7b5e2dd07 | |
parent | ccd56bf10ca990fd8610c7f1a49b304f75610dd5 (diff) |
Correct an issue with exceptv3.2.6
-rw-r--r-- | glances/outdated.py | 3 |
1 files changed, 1 insertions, 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' |