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
                     str(unmarshall.errors)
49
                     str(unmarshall.errors)
50
                 )
50
                 )
51
             )
51
             )
52
+        from flask import Response
52
         return Response(
53
         return Response(
53
             response=json.dumps(unmarshall.data),
54
             response=json.dumps(unmarshall.data),
54
             mimetype='application/json',
55
             mimetype='application/json',