From 977ccafe7ae84950d5d201fbdcd4f37b272b71d5 Mon Sep 17 00:00:00 2001 From: ablaszkiewicz Date: Sat, 6 Dec 2025 11:17:31 +0100 Subject: [PATCH 1/3] fix: remove unused --- CHANGELOG.md | 4 ++++ posthog/client.py | 3 --- posthog/test/test_client.py | 3 --- posthog/version.py | 2 +- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0966c51b..3f96c7a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 7.4.0 - 2025-12-06 + +fix: remove unused $exception_message + # 7.3.0 - 2025-12-05 feat: improve code variables capture masking diff --git a/posthog/client.py b/posthog/client.py index 188cbf67..29d6ec81 100644 --- a/posthog/client.py +++ b/posthog/client.py @@ -1002,9 +1002,6 @@ def capture_exception( properties = { "$exception_type": all_exceptions_with_trace_and_in_app[0].get("type"), - "$exception_message": all_exceptions_with_trace_and_in_app[0].get( - "value" - ), "$exception_list": all_exceptions_with_trace_and_in_app, **properties, } diff --git a/posthog/test/test_client.py b/posthog/test/test_client.py index 045c068a..fee7dc63 100644 --- a/posthog/test/test_client.py +++ b/posthog/test/test_client.py @@ -201,9 +201,6 @@ def test_basic_capture_exception_with_no_exception_given(self): self.assertEqual( capture_call[1]["properties"]["$exception_type"], "Exception" ) - self.assertEqual( - capture_call[1]["properties"]["$exception_message"], "test exception" - ) self.assertEqual( capture_call[1]["properties"]["$exception_list"][0]["mechanism"][ "type" diff --git a/posthog/version.py b/posthog/version.py index cbf2e318..492e6667 100644 --- a/posthog/version.py +++ b/posthog/version.py @@ -1,4 +1,4 @@ -VERSION = "7.3.0" +VERSION = "7.3.1" if __name__ == "__main__": print(VERSION, end="") # noqa: T201 From 5a19f71e6317aeac92eebbddbcbb340a9c65360b Mon Sep 17 00:00:00 2001 From: ablaszkiewicz Date: Sat, 6 Dec 2025 11:20:40 +0100 Subject: [PATCH 2/3] fix: remove exception type --- posthog/client.py | 1 - posthog/test/test_client.py | 3 --- 2 files changed, 4 deletions(-) diff --git a/posthog/client.py b/posthog/client.py index 29d6ec81..890f8a55 100644 --- a/posthog/client.py +++ b/posthog/client.py @@ -1001,7 +1001,6 @@ def capture_exception( all_exceptions_with_trace_and_in_app = event["exception"]["values"] properties = { - "$exception_type": all_exceptions_with_trace_and_in_app[0].get("type"), "$exception_list": all_exceptions_with_trace_and_in_app, **properties, } diff --git a/posthog/test/test_client.py b/posthog/test/test_client.py index fee7dc63..a2932946 100644 --- a/posthog/test/test_client.py +++ b/posthog/test/test_client.py @@ -198,9 +198,6 @@ def test_basic_capture_exception_with_no_exception_given(self): print(capture_call) self.assertEqual(capture_call[1]["distinct_id"], "distinct_id") self.assertEqual(capture_call[0][0], "$exception") - self.assertEqual( - capture_call[1]["properties"]["$exception_type"], "Exception" - ) self.assertEqual( capture_call[1]["properties"]["$exception_list"][0]["mechanism"][ "type" From 38a2167e13934d386f1169ef868dd381a9228126 Mon Sep 17 00:00:00 2001 From: ablaszkiewicz Date: Sat, 6 Dec 2025 11:22:32 +0100 Subject: [PATCH 3/3] fix: wip --- CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f96c7a7..f05417fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ -# 7.4.0 - 2025-12-06 +# 7.3.1 - 2025-12-06 -fix: remove unused $exception_message +fix: remove unused $exception_message and $exception_type # 7.3.0 - 2025-12-05