瀏覽代碼

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