SemanticDiff fastapi
✨ Raise early when using form data without installing python-multipart
#1851
Merged

✨ Raise early when using form data without installing python-multipart #1851

tiangolo merged 28 commits into master from raise-form-early-2
tiangolo
YKo20010 Check if Form exists and multipart is in virtual environment
6b3bee04
YKo20010 Remove unused import
ed22e5af
YKo20010 Move BodyFieldInfo check to separate helper function
773145b0
YKo20010 Fix type UploadFile to File for BodyFieldInfo check
a0420614
Working solution. Kind of nasty though.
58814180
kx-chen Use better method of determing if correct package imported
6543da7b
kx-chen Use better method of determing if correct package imported
dde8f464
YKo20010 Add raising exceptions, update error messages
daa21a29
YKo20010 Fix merge conflicts
02bb30e8
YKo20010 Check if Form exists and multipart is in virtual environment
a5895c54
YKo20010 Move BodyFieldInfo check to separate helper function
315aeb9a
YKo20010 Fix type UploadFile to File for BodyFieldInfo check
1cdff73e
kx-chen Use better method of determing if correct package imported
9d821294
Updated what kind of exception will be thrown
99b805fe
kx-chen Add type annotations
520daa01
kx-chen Add basic tests
5ffc2da6
YKo20010 Fix merge conflicts
9c5909ae
Fixed Travis tests
840ac95a
YKo20010 Replace logging with fastapi logger
dc29b937
YKo20010 Change AttributeError to ImportError to fix exception handling
7a437095
Fixing tests
f94cdc4b
kx-chen Catch ModuleNotFoundError first
9e95db32
Update fastapi/dependencies/utils.py
16370387
Update fastapi/dependencies/utils.py
7284cb00
Removed spaces in error printing
bdfb9f20
tiangolo ♻️ Refactor form data detection
20c6b69d
tiangolo ✅ Update/increase tests for incorrect multipart install
f5cb7d86
codecov
github-actions
tiangolo 🔥 Remove deprecated Travis (moved to GitHub Actions)
0cf5b4e9
github-actions
tiangolo tiangolo merged 38d8bab7 into master 4 years ago
tiangolo tiangolo deleted the raise-form-early-2 branch 4 years ago

Login to write a write a comment.

Login via GitHub

Reviewers
No reviews
Assignees
No one assigned
Labels
Milestone