Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

got_request_exception signal repeat execution #814

Open
VieteChen opened this issue Mar 28, 2022 · 1 comment
Open

got_request_exception signal repeat execution #814

VieteChen opened this issue Mar 28, 2022 · 1 comment
Labels

Comments

@VieteChen
Copy link

VieteChen commented Mar 28, 2022

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

@VieteChen VieteChen added the bug label Mar 28, 2022
@badrul9009
Copy link

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

40451340

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants