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

Correctly log werkzeug.exceptions.HTTPExceptions #402

Conversation

thomsentner
Copy link

@thomsentner
Copy link
Author

Alternatively, this would also work, if preferred:

        if isinstance(e, werkzeug.exceptions.HTTPException):
            status_code = e.code
        else:
            status_code = 500
        return None, status_code, e

@FlyingBird95 FlyingBird95 changed the base branch from master to development January 1, 2022 13:45
@FlyingBird95 FlyingBird95 merged commit 0bb90e0 into flask-dashboard:development Jan 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Status code incorrectly logged
2 participants