Skip to content

Commit 37d12da

Browse files
authored
Merge release/0.7.7 into master
2 parents 99900d1 + 2116084 commit 37d12da

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

CHANGES.md

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
* Fix a bug in the Celery integration that would drop pending events during
1111
worker shutdown (particularly an issue when running with `max_tasks_per_child
1212
= 1`)
13+
* Fix a bug with `repr`ing locals whose `__repr__` simultaneously changes the
14+
WSGI environment or other data that we're also trying to serialize at the
15+
same time.
1316

1417
## 0.7.6
1518

sentry_sdk/consts.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
)
4343

4444

45-
VERSION = "0.7.6"
45+
VERSION = "0.7.7"
4646
DEFAULT_SERVER_NAME = socket.gethostname() if hasattr(socket, "gethostname") else None
4747
DEFAULT_OPTIONS = {
4848
"dsn": None,

sentry_sdk/integrations/tornado.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import sys
21
import weakref
32
from inspect import iscoroutinefunction
43

54
from sentry_sdk.hub import Hub, _should_send_default_pii
65
from sentry_sdk.utils import (
6+
HAS_REAL_CONTEXTVARS,
77
event_from_exception,
88
capture_internal_exceptions,
99
transaction_from_function,
@@ -39,11 +39,11 @@ def setup_once():
3939
if tornado_version is None or tornado_version < (5, 0):
4040
raise RuntimeError("Tornado 5+ required")
4141

42-
if sys.version_info < (3, 7):
42+
if not HAS_REAL_CONTEXTVARS:
4343
# Tornado is async. We better have contextvars or we're going to leak
4444
# state between requests.
4545
raise RuntimeError(
46-
"The tornado integration for Sentry requires Python 3.7+"
46+
"The tornado integration for Sentry requires Python 3.6+ or the aiocontextvars package"
4747
)
4848

4949
ignore_logger("tornado.application")

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
setup(
1414
name="sentry-sdk",
15-
version="0.7.6",
15+
version="0.7.7",
1616
author="Sentry Team and Contributors",
1717
author_email="hello@getsentry.com",
1818
url="https://github.com/getsentry/sentry-python",

0 commit comments

Comments
 (0)