We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have code raising an exception from another exception.
try: return check_response(response) except KeyError as exc: raise Exception('Failed to fetch the data.') from exc
I then have an exception handler.
@app.exception_handler(Exception) async def exception(request: Request, exc: Exception): logger.info(exc) if exc.__cause__ is not None: logger.info(exc.__cause__) return self._json_response(HTTPStatus.INTERNAL_SERVER_ERROR, exc)
The second log statement never executes.
See this ticket for further details: fastapi/fastapi#2683
The text was updated successfully, but these errors were encountered:
I think this is the same as this issue: #1114
Sorry, something went wrong.
Yeah this should be fixed by #1158
No branches or pull requests
I have code raising an exception from another exception.
I then have an exception handler.
The second log statement never executes.
See this ticket for further details: fastapi/fastapi#2683
The text was updated successfully, but these errors were encountered: