Fix an import error when you have no GNS3 VM

pull/565/head
Julien Duponchelle 8 years ago
parent e497e98ca1
commit 8e3e3c08f8
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

@ -405,7 +405,7 @@ class ProjectHandler:
if not packet:
break
temp.write(packet)
project.import_zip(temp, gns3vm=bool(request.GET.get("gns3vm", "1")))
project.import_zip(temp, gns3vm=bool(int(request.GET.get("gns3vm", "1"))))
except OSError as e:
raise aiohttp.web.HTTPInternalServerError(text="Could not import the project: {}".format(e))

Loading…
Cancel
Save