Remove warning message for unsupported related titles

This commit is contained in:
Cuong Tran 2024-06-14 20:52:34 +07:00
parent d3d0efdfcd
commit e5bf2de4bd
No known key found for this signature in database
GPG key ID: 733AA7624B9315C2

View file

@ -1,6 +1,5 @@
package eu.kanade.tachiyomi.source
import dev.icerock.moko.graphics.BuildConfig
import eu.kanade.tachiyomi.source.model.FilterList
import eu.kanade.tachiyomi.source.model.MangasPage
import eu.kanade.tachiyomi.source.model.SManga
@ -122,17 +121,7 @@ interface CatalogueSource : Source {
) {
runCatching { fetchRelatedMangaList(manga) }
.onSuccess { if (it.isNotEmpty()) pushResults(Pair("", it), false) }
.onFailure { e ->
@Suppress("KotlinConstantConditions")
if (BuildConfig.BUILD_TYPE == "release") {
logcat(LogPriority.ERROR, e) { "## getRelatedMangaListByExtension: $e" }
} else {
throw UnsupportedOperationException(
"Extension doesn't support site's related entries," +
" please report an issue to Komikku."
)
}
}
.onFailure { e -> logcat(LogPriority.ERROR, e) { "## getRelatedMangaListByExtension: $e" } }
}
/**