Skip to content

Flask contrib middlware is not callable. #187

@b1-88er

Description

@b1-88er

When wrapping application with TraceMiddlware as it is mentioned in the docs I get the error:

venv/lib/python2.7/site-packages/flask/app.py:1836: in __call__
    return self.wsgi_app(environ, start_response)
E   TypeError: 'TraceMiddleware' object is not callable

The middleware is not callable (no sign of __call__ method) which means it violates the PEP333

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions