Typo in Exceptions docs #3115
Unanswered
t-morvan
asked this question in
Potential Issue
Replies: 1 comment
-
|
Yes, you are correct. Would you be able to open a PR to fix it? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello !
Unlesss I am mistaken, I think there is a typo in the exception doc page.
All exceptions are typed as HTTPException whereas in case of a 500, it should be a generic Exception type ?
https://www.starlette.dev/exceptions/
For instance this snippet doesn't work as all exceptions don't have a detail attribute.
Thanks !
Beta Was this translation helpful? Give feedback.
All reactions