fix: gns3-server crashes on startup if "Open this project in the background" is active but there is a problem with that project

This commit is contained in:
grossmj 2026-07-12 13:46:12 +02:00
parent e3e0a511b6
commit ea09cc2724
No known key found for this signature in database
GPG Key ID: 1E7DD6DBB53FF3D7

View File

@ -562,7 +562,15 @@ class Controller:
for project in self._projects.values():
if project.auto_open:
await project.open()
try:
await project.open()
except aiohttp.web.HTTPClientError as e:
details = e.text or e.reason or str(e)
log.warning(
"Failed to auto-open project '%s': %s",
project.name,
details,
)
def get_free_project_name(self, base_name):
"""