Skip to content

Commit f5b2d51

Browse files
committed
Call copy on the flags property
1 parent 514f69f commit f5b2d51

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

sentry_sdk/scope.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,7 @@ def __copy__(self):
251251

252252
rv._last_event_id = self._last_event_id
253253

254-
# TODO: Do I need to target `self.flags`? I don't want to create an instance
255-
# before I copy but I guess theres no harm.
256-
rv._flags = self._flags.copy()
254+
rv._flags = self.flags.copy()
257255

258256
return rv
259257

@@ -1557,7 +1555,7 @@ def __repr__(self):
15571555
def flags(self):
15581556
# type: () -> FlagBuffer
15591557
if self._flags is None:
1560-
self._flags = FlagBuffer(capacity=50)
1558+
self._flags = FlagBuffer(capacity=100)
15611559
self._flags
15621560

15631561

0 commit comments

Comments
 (0)