Skip to content

Commit d8ad142

Browse files
committed
return MatchFrame instance from create_match_frame
1 parent 758d91f commit d8ad142

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/sentry/grouping/enhancer/matchers.py

+10-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,16 @@ def create_match_frame(frame_data: dict, platform: str | None) -> dict:
121121
# We do this here in a central place instead of in each matcher separately.
122122
value = match_frame[key] = value.lower().replace(b"\\", b"/")
123123

124-
return match_frame
124+
return MatchFrame(
125+
category=match_frame["category"],
126+
family=match_frame["family"],
127+
function=match_frame["function"],
128+
in_app=match_frame["in_app"],
129+
orig_in_app=match_frame["orig_in_app"],
130+
module=match_frame["module"],
131+
package=match_frame["package"],
132+
path=match_frame["path"],
133+
)
125134

126135

127136
class EnhancementMatch:

0 commit comments

Comments
 (0)