diff --git a/shared/src/commonMain/kotlin/dev/sasikanth/rss/reader/home/HomeViewModel.kt b/shared/src/commonMain/kotlin/dev/sasikanth/rss/reader/home/HomeViewModel.kt index 444f90797..e74c5041d 100644 --- a/shared/src/commonMain/kotlin/dev/sasikanth/rss/reader/home/HomeViewModel.kt +++ b/shared/src/commonMain/kotlin/dev/sasikanth/rss/reader/home/HomeViewModel.kt @@ -166,7 +166,11 @@ internal class HomeViewModel( } private fun refreshContent() { - viewModelScope.launch { updateLoadingState { rssRepository.updateFeeds() } } + try { + viewModelScope.launch { updateLoadingState { rssRepository.updateFeeds() } } + } catch (e: Exception) { + Sentry.captureException(e) + } } private suspend fun updateLoadingState(action: suspend () -> Unit) {