summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--glances/outdated.py3
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'