mirror of https://github.com/nicolargo/glances.git
Correct an issue with except
This commit is contained in:
parent
ccd56bf10c
commit
197c98077f
|
|
@ -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'
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue