osclib/sentry: sentry_client(): handle 0.11.x API change.
This commit is contained in:
parent
e912e9d2c3
commit
cbfbb88048
2
dist/package/openSUSE-release-tools.spec
vendored
2
dist/package/openSUSE-release-tools.spec
vendored
@ -268,6 +268,8 @@ BuildArch: noarch
|
||||
Requires: %{name} = %{version}
|
||||
Requires: osc >= 0.165.1
|
||||
Requires: python3-osc
|
||||
# internal API change related to accessing DSN in osclib/sentry.py
|
||||
Suggests: python3-sentry-sdk >= 0.11.0
|
||||
|
||||
%description -n osclib
|
||||
Supplemental osc libraries utilized by release tools.
|
||||
|
@ -24,7 +24,7 @@ def sentry_init(obs_apiurl=None, tags=None):
|
||||
return sentry_sdk
|
||||
|
||||
def sentry_client():
|
||||
return sentry_init.client
|
||||
return sentry_init.client._client
|
||||
|
||||
class sentry_sdk_dummy:
|
||||
def configure_scope(*args, **kw):
|
||||
|
Loading…
x
Reference in New Issue
Block a user