error handling to wrap posthog in intellij
This commit is contained in:
parent
0115910fad
commit
c569a70e23
1 changed files with 3 additions and 1 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue