Skip to content

Commit 24cddf2

Browse files
committed
fix breadcrumbs
1 parent 4f3cac4 commit 24cddf2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sentry_sdk/scope.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def __copy__(self):
247247
rv._contexts = self._contexts.copy() if self._contexts else {}
248248
rv._extras = self._extras.copy() if self._extras else {}
249249

250-
rv._breadcrumbs = copy(self._breadcrumbs) if self._breadcrumbs else {}
250+
rv._breadcrumbs = copy(self._breadcrumbs) if self._breadcrumbs else deque()
251251
rv._n_breadcrumbs_truncated = self._n_breadcrumbs_truncated
252252
rv._event_processors = (
253253
self._event_processors.copy() if self._event_processors else []

tests/test_scope.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
def test_copying():
2323
s1 = Scope()
24-
s1.fingerprint = {}
24+
s1.fingerprint = ["abc"]
2525
s1.set_tag("foo", "bar")
2626

2727
s2 = copy.copy(s1)

0 commit comments

Comments
 (0)