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

📝 Update HTTPException details in docs/en/docs/tutorial/handling-errors.md #5418

Merged
merged 3 commits into from
Jan 15, 2024

Conversation

papb
Copy link
Contributor

@papb papb commented Sep 22, 2022

This PR updates an outdated comparison between Starlette's and FastAPI's HTTPException.

The current docs became outdated when Starlette was upgraded to 0.19.0 which included this change.

In fact, FastAPI's own version of HTTPException almost became unnecessary, but @tiangolo caught a little difference regarding a type hint.

Related discussion in Starlette: encode/starlette#1865

Update outdated comparison between Starlette's and FastAPI's `HTTPException`
@codecov
Copy link

codecov bot commented Sep 22, 2022

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (cf73051) 100.00% compared to head (1a56230) 100.00%.
Report is 1040 commits behind head on master.

❗ Current head 1a56230 differs from pull request most recent head 34764b7. Consider uploading reports for the commit 34764b7 to get more accurate results

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #5418   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          540       540           
  Lines        13969     13934   -35     
=========================================
- Hits         13969     13934   -35     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-actions
Copy link
Contributor

📝 Docs preview for commit 1a56230 at: https://632cf15be9447700626b28e6--fastapi.netlify.app

@github-actions
Copy link
Contributor

📝 Docs preview for commit f2d4477 at: https://639cdc3c04b775009f17a4e4--fastapi.netlify.app

@tiangolo tiangolo changed the title Update outdated info in handling-errors tutorial 📝 Update HTTPException details in docs/en/docs/tutorial/handling-errors.md Jan 15, 2024
@tiangolo tiangolo added docs Documentation about how to use FastAPI and removed investigate labels Jan 15, 2024
@tiangolo
Copy link
Member

Good point about the text update, thanks @papb! 🔍

@tiangolo tiangolo enabled auto-merge (squash) January 15, 2024 15:13
@tiangolo tiangolo merged commit cf01195 into fastapi:master Jan 15, 2024
39 checks passed
nilslindemann added a commit to nilslindemann/fastapi that referenced this pull request Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation about how to use FastAPI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants