Skip to content

Commit 5a19f71

Browse files
committed
fix: remove exception type
1 parent 977ccaf commit 5a19f71

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

posthog/client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,6 @@ def capture_exception(
10011001
all_exceptions_with_trace_and_in_app = event["exception"]["values"]
10021002

10031003
properties = {
1004-
"$exception_type": all_exceptions_with_trace_and_in_app[0].get("type"),
10051004
"$exception_list": all_exceptions_with_trace_and_in_app,
10061005
**properties,
10071006
}

posthog/test/test_client.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,6 @@ def test_basic_capture_exception_with_no_exception_given(self):
198198
print(capture_call)
199199
self.assertEqual(capture_call[1]["distinct_id"], "distinct_id")
200200
self.assertEqual(capture_call[0][0], "$exception")
201-
self.assertEqual(
202-
capture_call[1]["properties"]["$exception_type"], "Exception"
203-
)
204201
self.assertEqual(
205202
capture_call[1]["properties"]["$exception_list"][0]["mechanism"][
206203
"type"

0 commit comments

Comments
 (0)