mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-06-19 15:53:47 +00:00
@ -135,7 +135,11 @@ class Config(object):
|
|||||||
Read the configuration files.
|
Read the configuration files.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
parsed_files = self._config.read(self._files, encoding="utf-8")
|
try:
|
||||||
|
parsed_files = self._config.read(self._files, encoding="utf-8")
|
||||||
|
except configparser.Error as e:
|
||||||
|
log.error("Can't parse configuration file: %s", str(e))
|
||||||
|
return
|
||||||
if not parsed_files:
|
if not parsed_files:
|
||||||
log.warning("No configuration file could be found or read")
|
log.warning("No configuration file could be found or read")
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user