mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-08-27 04:20:14 +03:00
Merge pull request #2812 from GNS3/bugfix/2788
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:
commit
b256d5a5f6
@ -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):
|
||||
"""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user