We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6ec34b commit 03591f6Copy full SHA for 03591f6
ide-common/src/main/kotlin/org/digma/intellij/plugin/analytics/BackendInfoHolder.kt
@@ -70,8 +70,18 @@ class BackendInfoHolder : Disposable {
70
fun updateInBackground() {
71
@Suppress("UnstableApiUsage")
72
disposingScope().launch {
73
- findActiveProject()?.let {
74
- aboutRef.set(AnalyticsService.getInstance(it).about)
+ try {
+
75
+ findActiveProject()?.let {
76
+ aboutRef.set(AnalyticsService.getInstance(it).about)
77
+ }
78
79
+ } catch (e: Throwable) {
80
+ val isConnectionException = ExceptionUtils.isAnyConnectionException(e)
81
82
+ if (!isConnectionException) {
83
+ ErrorReporter.getInstance().reportError("BackendUtilsKt.updateInBackground", e)
84
85
}
86
87
0 commit comments