Skip to content

Commit 169dcdf

Browse files
committed
feat: wip
1 parent c801d96 commit 169dcdf

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

posthog/client.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -993,6 +993,15 @@ def capture_exception(
993993
)
994994
all_exceptions_with_trace_and_in_app = event["exception"]["values"]
995995

996+
properties = {
997+
"$exception_type": all_exceptions_with_trace_and_in_app[0].get("type"),
998+
"$exception_message": all_exceptions_with_trace_and_in_app[0].get(
999+
"value"
1000+
),
1001+
"$exception_list": all_exceptions_with_trace_and_in_app,
1002+
**properties,
1003+
}
1004+
9961005
context_enabled = get_code_variables_enabled_context()
9971006
context_mask = get_code_variables_mask_patterns_context()
9981007
context_ignore = get_code_variables_ignore_patterns_context()
@@ -1021,15 +1030,6 @@ def capture_exception(
10211030
ignore_patterns=ignore_patterns,
10221031
)
10231032

1024-
properties = {
1025-
"$exception_type": all_exceptions_with_trace_and_in_app[0].get("type"),
1026-
"$exception_message": all_exceptions_with_trace_and_in_app[0].get(
1027-
"value"
1028-
),
1029-
"$exception_list": all_exceptions_with_trace_and_in_app,
1030-
**properties,
1031-
}
1032-
10331033
if self.log_captured_exceptions:
10341034
self.log.exception(exception, extra=kwargs)
10351035

0 commit comments

Comments
 (0)