We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50553d4 commit 4a7b8ceCopy full SHA for 4a7b8ce
sentry_sdk/integrations/asyncio.py
@@ -148,10 +148,9 @@ async def _flush() -> None:
148
if not isinstance(client.transport, AsyncHttpTransport):
149
return
150
151
- t = client.close()
+ t = client.close() # type: ignore
152
if t is not None:
153
- # Wait for the task to complete.
154
- await t # type: ignore
+ await t
155
except Exception:
156
logger.warning(
157
"Sentry flush failed during loop shutdown", exc_info=True
@@ -165,7 +164,7 @@ def _patched_close() -> None:
165
164
finally:
166
orig_close()
167
168
- loop.close = _patched_close
+ loop.close = _patched_close # type: ignore
169
loop._sentry_flush_patched = True # type: ignore
170
171
_patch_loop_close()
0 commit comments