Skip to content

got_request_exception signal repeat execution #814

Open
@VieteChen

Description

@VieteChen

if debug=True or propagate_exceptions=True got_request_exception signal repeat execution, This statement can be avoided by moving it to the back of the judgment

#api.py line610
def handle_error(self, e):
    got_request_exception.send(current_app._get_current_object(), exception=e)
    if not isinstance(e, HTTPException) and current_app.propagate_exceptions:
        exc_type, exc_value, tb = sys.exc_info()
        if exc_value is e:
            raise
        else:
            raise e

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions