Skip to content

Commit

Permalink
Merge pull request #2577 from digma-ai/ignore-FileNotFoundException-i…
Browse files Browse the repository at this point in the history
…n-fixFile

ignore-FileNotFoundException-in-fixFile
  • Loading branch information
shalom938 authored Nov 3, 2024
2 parents 3d7599a + 2bd9f8a commit 86c4151
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import org.digma.intellij.plugin.errorreporting.ErrorReporter
import org.digma.intellij.plugin.log.Log
import org.digma.intellij.plugin.persistence.PersistenceService
import java.io.File
import java.io.FileNotFoundException
import java.util.concurrent.locks.ReentrantLock
import kotlin.concurrent.withLock

Expand All @@ -27,7 +28,9 @@ class EngagementScoreServiceStartup : ProjectActivity {
}
}
}
} catch (e: Throwable) {
} catch (e: FileNotFoundException) {
//ignore, the file does not exist on new install
}catch (e: Throwable) {
Log.warnWithException(logger, project, e, "error fixing file")
ErrorReporter.getInstance().reportError("EngagementScoreServiceStartup.fixFile", e)
}
Expand Down

0 comments on commit 86c4151

Please sign in to comment.