Skip to content

Commit

Permalink
Catch Throwable instead of Exception. Update RssParser
Browse files Browse the repository at this point in the history
  • Loading branch information
prof18 committed Jul 3, 2023
1 parent 071d991 commit d1375d0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ androidx-compose-material3 = "1.1.0-beta01"
androidx-compose-bom = "2023.03.00"
org-robolectric = "4.9"
sqlDelight = "1.5.5"
rss-parser = "6.0.0-dev07"
rss-parser = "6.0.0-alpha01"
kotlinx-date-time = "0.4.0"
accompanist = "0.28.0"
jsoup = "1.15.3"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
package com.prof18.feedflow.di

import com.prof18.rssparser.RssParser
import com.prof18.rssparser.build
import com.prof18.feedflow.data.DatabaseHelper
import com.prof18.feedflow.db.FeedFlowDB
import com.prof18.feedflow.domain.HtmlParser
import com.prof18.feedflow.domain.JvmHtmlParser
import com.prof18.feedflow.domain.opml.OPMLFeedParser
import com.prof18.feedflow.presentation.BaseViewModel
import com.prof18.feedflow.utils.DispatcherProvider
import com.prof18.rssparser.RssParser
import com.prof18.rssparser.build
import com.squareup.sqldelight.android.AndroidSqliteDriver
import com.squareup.sqldelight.db.SqlDriver
Expand Down Expand Up @@ -42,8 +41,6 @@ internal actual val platformModule: Module = module {
}

single {
// Parser.Builder()
// .build()
RssParser.build()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ internal class FeedRetrieverRepositoryImpl(
feedSource = feedSource,
)
send(result)
} catch (e: Exception) {
} catch (e: Throwable) {
Logger.e(e) { "Something went wrong, skipping: ${feedSource.url}}" }
e.printStackTrace()
errorMutableState.update {
Expand Down

0 comments on commit d1375d0

Please sign in to comment.