Merge pull request #4389 from continuedev/nate/fixes0982

error handling to wrap posthog in intellij
This commit is contained in:
Nate Sesti 2025-02-26 22:36:33 -08:00 • committed by GitHub
commit 0eaca56be4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,7 +19,9 @@ class TelemetryService {
if (this.posthog == null || this.distinctId == null) {
return;
}
this.posthog?.capture(this.distinctId, eventName, properties)
try {
this.posthog?.capture(this.distinctId, eventName, properties)
} catch (e: Exception) {}
}
fun shutdown() {