Skip to content

Commit a834583

Browse files
committed
mypy
1 parent 8f04a74 commit a834583

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

sentry_sdk/consts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ class CompressionAlgo(Enum):
3535
Any,
3636
Callable,
3737
Dict,
38-
IgnoreSpansConfig,
3938
List,
4039
Optional,
4140
Sequence,
@@ -53,6 +52,7 @@ class CompressionAlgo(Enum):
5352
Event,
5453
EventProcessor,
5554
Hint,
55+
IgnoreSpansConfig,
5656
Log,
5757
MeasurementUnit,
5858
Metric,

sentry_sdk/tracing_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1505,6 +1505,8 @@ def _matches(rule: "Any", value: "Any") -> bool:
15051505
name_matches = True
15061506
attributes_match = True
15071507

1508+
attributes = attributes or {}
1509+
15081510
if "name" in rule:
15091511
name_matches = _matches(rule["name"], name)
15101512

0 commit comments

Comments
 (0)