mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-08-27 12:30:13 +03:00
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:
parent
e3e0a511b6
commit
ea09cc2724
@ -562,7 +562,15 @@ class Controller:
|
|||||||
|
|
||||||
for project in self._projects.values():
|
for project in self._projects.values():
|
||||||
if project.auto_open:
|
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):
|
def get_free_project_name(self, base_name):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user