Fix export project is looking into the wrong directory

Fix #1010
This commit is contained in:
Julien Duponchelle committed 2017-05-11 17:59:57 +02:00
1 parent f31e46e8ed
commit 766456014b
1 file changed
+2 -3
+2 -3
View File
@@ -190,6 +190,5 @@ def _export_images(project, image, z):
if os.path.exists(path):
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))
return
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(image))