osclib/sentry: sentry_client(): handle 0.11.x API change.

This commit is contained in:
Jimmy Berry 2019-08-29 14:10:29 -05:00
parent e912e9d2c3
commit cbfbb88048
2 changed files with 3 additions and 1 deletions

View File

@ -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.

View File

@ -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):