Merge pull request #122 from Jastor11/patch-1

[Friendly Spellcheck]: Fix typo in init_sentry event
This commit is contained in:
Badr B 2023-10-21 16:20:31 +02:00 committed by GitHub
commit 68cd4973c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,8 +6,8 @@ from config.config import LearnHouseConfig
async def init_sentry(app: FastAPI) -> None: async def init_sentry(app: FastAPI) -> None:
leanrhouse_config : LearnHouseConfig = app.learnhouse_config # type: ignore learnhouse_config : LearnHouseConfig = app.learnhouse_config # type: ignore
if leanrhouse_config.hosting_config.sentry_config is not None: if learnhouse_config.hosting_config.sentry_config is not None:
sentry_sdk.init( sentry_sdk.init(
dsn=app.learnhouse_config.hosting_config.sentry_config.dsn, # type: ignore dsn=app.learnhouse_config.hosting_config.sentry_config.dsn, # type: ignore
environment=app.learnhouse_config.hosting_config.sentry_config.environment, # type: ignore environment=app.learnhouse_config.hosting_config.sentry_config.environment, # type: ignore