Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sentryio/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def init_sentry(self, dsn: str) -> None:
)

def close_sentry(self) -> None:
client = sentry_sdk.Hub.current.client
client = sentry_sdk.get_client()
if client is not None:
log.info("Closing Sentry client")
client.close(timeout=0)
Expand All @@ -75,7 +75,7 @@ async def sentry_group(self, ctx):
@sentry_group.command(name="status")
async def status(self, ctx):
"""Check the status of Sentry.IO integration."""
client = sentry_sdk.Hub.current.client
client = sentry_sdk.get_client()
if client is None:
await ctx.send("Sentry.IO is not initialized.")
return
Expand Down
Loading