Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitce6efdf

Browse files
committed
Upgrade python sentry sdk. sentry_sdk.init globally to make integrations work.
1 parent4220cb6 commitce6efdf

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

‎core/utils.py‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,12 +210,11 @@ def transport(e):
210210
nonlocalevent
211211
event=e
212212

213-
client=sentry_sdk.Client(
213+
sentry_sdk.init(
214214
transport=transport,
215215
integrations=[PureEvalIntegration(),ExecutingIntegration()],
216216
)
217-
hub=sentry_sdk.Hub(client)
218-
hub.capture_exception()
217+
sentry_sdk.capture_exception()
219218

220219
assertevent
221220
returnevent

‎poetry.lock‎

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp