Skip to content

Commit 412893d

Browse files
committed
fix(mypy): try fix warning
1 parent 85a4c56 commit 412893d

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

asgi_webdav/server.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -180,18 +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 # type: ignore
184-
from sentry_sdk.integrations.asgi import ( # type: ignore
185-
SentryAsgiMiddleware,
186-
)
183+
import sentry_sdk
184+
from sentry_sdk.integrations.asgi import SentryAsgiMiddleware
187185
from sentry_sdk.integrations.asyncio import AsyncioIntegration
188186

189187
sentry_sdk.init(
190188
dsn=config.sentry_dsn,
191189
release=f"{app_name}@{__version__}",
192190
integrations=[AsyncioIntegration()],
193191
)
194-
app = SentryAsgiMiddleware(app)
192+
app = SentryAsgiMiddleware(app) # type: ignore
195193

196194
except ImportError as e:
197195
logger.warning(e)

0 commit comments

Comments
 (0)