ソースを参照

Flask context: fix error response import

Guénaël Muller 7 年 前
コミット
8bb0882500
共有1 個のファイルを変更した1 個の追加0 個の削除を含む
  1. 1 0
      hapic/ext/flask/context.py

+ 1 - 0
hapic/ext/flask/context.py ファイルの表示

@@ -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',