Skip to content

Commit 4331b2e

Browse files
author
Osmar Coronel
committed
bababuah
2 parents b7fb750 + f11bbc2 commit 4331b2e

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

sentry_sdk/client.py

-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ def _prepare_event(
163163
]
164164
}
165165

166-
self._update_options()
167166
for key in "release", "environment", "server_name", "dist":
168167
if event.get(key) is None and self.options[key] is not None: # type: ignore
169168
event[key] = text_type(self.options[key]).strip() # type: ignore

sentry_sdk/hub.py

+1
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ def bind_client(
309309
):
310310
# type: (...) -> None
311311
"""Binds a new client to the hub."""
312+
new._update_options()
312313
top = self._stack[-1]
313314
self._stack[-1] = (new, top[1])
314315

tests/integrations/beam/test_beam.py

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
pytest.importorskip("apache_beam")
55

66
import dill
7+
78
from sentry_sdk.integrations.beam import (
89
BeamIntegration,
910
_wrap_task_call,

tox.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ envlist =
3232
{pypy,py2.7,py3.5,py3.6,py3.7,py3.8}-celery-{4.1,4.2,4.3}
3333
{pypy,py2.7}-celery-3
3434

35-
py2.7-beam-{12,13,master}
36-
{py3.6,py3.7}-beam-{12,13,master}
35+
{py2.7,py3.6}-beam-{12,13,master}
36+
py3.7-beam-{12,13}
3737

3838
# The aws_lambda tests deploy to the real AWS and have their own matrix of Python versions.
3939
py3.7-aws_lambda

0 commit comments

Comments
 (0)