Skip to content

Fix check for Starlette in FastAPI integration#1868

Merged
antonpirker merged 3 commits into
masterfrom
antonpirker/1603-cannot-import-startletteintegration
Jan 30, 2023
Merged

Fix check for Starlette in FastAPI integration#1868
antonpirker merged 3 commits into
masterfrom
antonpirker/1603-cannot-import-startletteintegration

Conversation

@antonpirker

Copy link
Copy Markdown
Contributor

When loading FastAPI integration also check if StarletteIntegration can actually be loaded. (Because Starlette is a requirement for FastAPI)

Fixes #1603

@antonpirker
antonpirker requested review from sl0thentr0py and removed request for sl0thentr0py January 30, 2023 08:37
@antonpirker
antonpirker merged commit c2ed5ec into master Jan 30, 2023
@antonpirker
antonpirker deleted the antonpirker/1603-cannot-import-startletteintegration branch January 30, 2023 14:21
@antonpirker antonpirker self-assigned this Jan 30, 2023
@thedch

thedch commented Apr 3, 2023

Copy link
Copy Markdown

Hi @antonpirker,

I'm still seeing this issue on sentry-sdk==1.18.0, is that expected? Let me know if there's any debug or mitigation steps I should take.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"ImportError: cannot import name 'StarletteIntegration' from 'sentry_sdk.integrations.starlette'" after sentry version update

3 participants