mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-30 21:03:49 +02:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
65103e9332
@ -135,7 +135,7 @@ class Config(object):
|
|||||||
Read the configuration files.
|
Read the configuration files.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
parsed_files = self._config.read(self._files)
|
parsed_files = self._config.read(self._files, encoding="utf-8")
|
||||||
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:
|
||||||
|
@ -36,6 +36,7 @@ class UploadHandler:
|
|||||||
try:
|
try:
|
||||||
for root, _, files in os.walk(UploadHandler.image_directory()):
|
for root, _, files in os.walk(UploadHandler.image_directory()):
|
||||||
for filename in files:
|
for filename in files:
|
||||||
|
if not filename.startswith("."):
|
||||||
image_file = os.path.join(root, filename)
|
image_file = os.path.join(root, filename)
|
||||||
uploaded_files.append(image_file)
|
uploaded_files.append(image_file)
|
||||||
except OSError:
|
except OSError:
|
||||||
|
Loading…
Reference in New Issue
Block a user