Skip to content

Commit

Permalink
fix(starlette): Prefer python_multipart import over multipart (#3710)
Browse files Browse the repository at this point in the history
See also releases 0.0.13 through 0.0.16 at
https://github.com/Kludex/python-multipart/releases.
---------

Co-authored-by: Daniel Szoke <[email protected]>
  • Loading branch information
musicinmybrain and szokeasaurusrex authored Oct 29, 2024
1 parent c21962e commit 000c8e6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sentry_sdk/integrations/starlette.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,12 @@

try:
# Optional dependency of Starlette to parse form data.
import multipart # type: ignore
try:
# python-multipart 0.0.13 and later
import python_multipart as multipart # type: ignore
except ImportError:
# python-multipart 0.0.12 and earlier
import multipart # type: ignore
except ImportError:
multipart = None

Expand Down

0 comments on commit 000c8e6

Please sign in to comment.