Skip to content

Commit 27f62c5

Browse files
committed
ci: fix mypy warning
1 parent 94ddf20 commit 27f62c5

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

asgi_webdav/server.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,14 +180,16 @@ def get_asgi_app(aep: AppEntryParameters, config_obj: dict[str, Any] | None = No
180180
# config sentry
181181
if config.sentry_dsn:
182182
try:
183-
import sentry_sdk
184-
from sentry_sdk.integrations.asgi import SentryAsgiMiddleware
183+
import sentry_sdk # type: ignore
184+
from sentry_sdk.integrations.asgi import ( # type: ignore
185+
SentryAsgiMiddleware,
186+
)
185187

186188
sentry_sdk.init(
187189
dsn=config.sentry_dsn,
188190
release=f"{app_name}@{__version__}",
189191
)
190-
app = SentryAsgiMiddleware(app) # type: ignore
192+
app = SentryAsgiMiddleware(app)
191193

192194
except ImportError as e:
193195
logger.warning(e)

0 commit comments

Comments
 (0)