Explorar el Código

Flask context: fix error response import

Guénaël Muller hace 7 años
padre
commit
8bb0882500
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      hapic/ext/flask/context.py

+ 1 - 0
hapic/ext/flask/context.py Ver fichero

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