Skip to content

Commit

Permalink
prep release
Browse files Browse the repository at this point in the history
  • Loading branch information
neilkakkar committed Sep 16, 2024
1 parent 336f1f2 commit b9c91dd
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 3.6.6 - 2024-09-16

1. Fix manual capture support for in app frames

## 3.6.5 - 2024-09-10

1. Fix django integration support for manual exception capture.
Expand Down
9 changes: 4 additions & 5 deletions posthog/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ def __init__(
self.enable_exception_autocapture = enable_exception_autocapture
self.exception_autocapture_integrations = exception_autocapture_integrations
self.exception_capture = None

if project_root is None:
try:
project_root = os.getcwd()
except Exception as e:
except Exception:
project_root = None

self.project_root = project_root
Expand Down Expand Up @@ -395,12 +395,11 @@ def capture_exception(
},
project_root=self.project_root,
)
print('prject root: ', self.project_root)
all_exceptions_with_trace_and_in_app = event["exception"]["values"]

properties = {
"$exception_type": all_exceptions_with_trace_and_in_app[-1].get("type"),
"$exception_message": all_exceptions_with_trace_and_in_app[-1].get("value"),
"$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,
"$exception_personURL": f"{remove_trailing_slash(self.raw_host)}/project/{self.api_key}/person/{distinct_id}",
**properties,
Expand Down
5 changes: 1 addition & 4 deletions posthog/test/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,7 @@ def test_basic_capture_exception_with_no_exception_given(self):
self.assertEqual(
capture_call[2]["$exception_list"][0]["stacktrace"]["frames"][0]["module"], "posthog.test.test_client"
)
self.assertEqual(
capture_call[2]["$exception_list"][0]["stacktrace"]["frames"][0]["in_app"], True
)

self.assertEqual(capture_call[2]["$exception_list"][0]["stacktrace"]["frames"][0]["in_app"], True)

def test_basic_capture_exception_with_no_exception_happening(self):

Expand Down
2 changes: 1 addition & 1 deletion posthog/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION = "3.6.5"
VERSION = "3.6.6"

if __name__ == "__main__":
print(VERSION, end="") # noqa: T201

0 comments on commit b9c91dd

Please sign in to comment.