Raise error if image are not avaible on main server during export

Fix https://github.com/GNS3/gns3-gui/issues/1928
pull/935/head
Julien Duponchelle 7 years ago
parent 233a5fbed4
commit 2c0fb0d016
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

@ -191,3 +191,5 @@ def _export_images(project, image, z):
arcname = os.path.join("images", directory, os.path.basename(image))
z.write(path, arcname)
break
else:
raise aiohttp.web.HTTPConflict(text="Topology could not be exported because the image {} is not available. If you use multiple server, we need a copy of the image on the main server.".format(path))

Loading…
Cancel
Save