From 1521621d66348ee9949e53dfdeae49d9ad39b5ad Mon Sep 17 00:00:00 2001 From: Neil Kakkar Date: Tue, 10 Sep 2024 09:27:47 +0100 Subject: [PATCH] fix: Update Django integration for manual capture (#135) --- CHANGELOG.md | 4 ++++ posthog/exception_capture.py | 2 +- posthog/version.py | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d3142e7..00d5d8c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 3.6.5 - 2024-09-10 + +1. Fix django integration support for manual exception capture. + ## 3.6.4 - 2024-09-05 1. Add manual exception capture. diff --git a/posthog/exception_capture.py b/posthog/exception_capture.py index 053451b..54d50e1 100644 --- a/posthog/exception_capture.py +++ b/posthog/exception_capture.py @@ -57,7 +57,7 @@ def exception_receiver(self, exc_info, extra_properties): metadata = {"distinct_id": extra_properties["distinct_id"]} else: metadata = None - self.capture_exception(exc_info[0], exc_info[1], exc_info[2], metadata) + self.capture_exception((exc_info[0], exc_info[1], exc_info[2]), metadata) def capture_exception(self, exception, metadata=None): try: diff --git a/posthog/version.py b/posthog/version.py index 3196ca2..ccbc523 100644 --- a/posthog/version.py +++ b/posthog/version.py @@ -1,4 +1,4 @@ -VERSION = "3.6.4" +VERSION = "3.6.5" if __name__ == "__main__": print(VERSION, end="") # noqa: T201