diff --git a/CHANGELOG.md b/CHANGELOG.md index 446992f8..719c58e8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 4.10.0 - 2025-06-13 + +- fix: no longer fail in autocapture. + ## 4.9.0 - 2025-06-13 - feat(ai): track reasoning and cache tokens in the LangChain callback diff --git a/posthog/client.py b/posthog/client.py index a6ce4423..707dcfc5 100644 --- a/posthog/client.py +++ b/posthog/client.py @@ -708,7 +708,7 @@ def capture_exception( ) # Mark the exception as captured to prevent duplicate captures - if exception is not None: + if exception is not None and isinstance(exception, BaseException): setattr(exception, "__posthog_exception_captured", True) return res diff --git a/posthog/version.py b/posthog/version.py index f19455b9..242fe013 100644 --- a/posthog/version.py +++ b/posthog/version.py @@ -1,4 +1,4 @@ -VERSION = "4.9.0" +VERSION = "4.10.0" if __name__ == "__main__": print(VERSION, end="") # noqa: T201