Browse Source

Flask context: fix error response import

Guénaël Muller 6 years ago
parent
commit
8bb0882500
1 changed files with 1 additions and 0 deletions
  1. 1 0
      hapic/ext/flask/context.py

+ 1 - 0
hapic/ext/flask/context.py View File

@@ -49,6 +49,7 @@ class FlaskContext(ContextInterface):
49 49
                     str(unmarshall.errors)
50 50
                 )
51 51
             )
52
+        from flask import Response
52 53
         return Response(
53 54
             response=json.dumps(unmarshall.data),
54 55
             mimetype='application/json',