error handling to wrap posthog in intellij

This commit is contained in:
Nate 2025-02-26 21:27:32 -08:00
parent 0115910fad
commit c569a70e23

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() {