diff --git a/app/src/main/kotlin/org/koitharu/kotatsu/core/parser/favicon/FaviconFetcher.kt b/app/src/main/kotlin/org/koitharu/kotatsu/core/parser/favicon/FaviconFetcher.kt index 911c2703f..f8ec34d49 100644 --- a/app/src/main/kotlin/org/koitharu/kotatsu/core/parser/favicon/FaviconFetcher.kt +++ b/app/src/main/kotlin/org/koitharu/kotatsu/core/parser/favicon/FaviconFetcher.kt @@ -20,7 +20,6 @@ import okhttp3.Response import okhttp3.ResponseBody import okhttp3.internal.closeQuietly import okio.Closeable -import okio.IOException import okio.buffer import org.koitharu.kotatsu.core.exceptions.CloudFlareProtectedException import org.koitharu.kotatsu.core.model.MangaSource @@ -62,7 +61,7 @@ class FaviconFetcher( loadIcon(icon.url, mangaSource) } catch (e: CloudFlareProtectedException) { throw e - } catch (e: IOException) { + } catch (e: HttpException) { favicons -= icon continue }