Skip to content

Commit

Permalink
Small fix to define "error" on api.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jdsantos committed Apr 17, 2020
1 parent cd3f192 commit 2f3ba56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ def image():
objects = object_detection_api.get_objects(image_object, threshold)
return Response(response=objects,status=200,mimetype="application/json")
except Exception as e:
return Response(response=json.dumps({error:e},indent=4, sort_keys=True, default=str),status=500,mimetype="application/json")
return Response(response=json.dumps({'error':e},indent=4, sort_keys=True, default=str),status=500,mimetype="application/json")

0 comments on commit 2f3ba56

Please sign in to comment.