Return proper JSON error when something goes wrong on any endpoint

This commit is contained in:
Julien Duponchelle
2016-07-20 17:17:42 +02:00
parent f68c1f0bde
commit ff4fc5eb8b
2 changed files with 8 additions and 9 deletions

View File

@ -231,7 +231,6 @@ class ProjectHandler:
controller = Controller.instance()
project = controller.get_project(request.match_info["project_id"])
started = False
for data in project.export(include_images=bool(request.GET.get("include_images", "0"))):