Fix handling favicon loading errors
This commit is contained in:
@@ -20,7 +20,6 @@ import okhttp3.Response
|
|||||||
import okhttp3.ResponseBody
|
import okhttp3.ResponseBody
|
||||||
import okhttp3.internal.closeQuietly
|
import okhttp3.internal.closeQuietly
|
||||||
import okio.Closeable
|
import okio.Closeable
|
||||||
import okio.IOException
|
|
||||||
import okio.buffer
|
import okio.buffer
|
||||||
import org.koitharu.kotatsu.core.exceptions.CloudFlareProtectedException
|
import org.koitharu.kotatsu.core.exceptions.CloudFlareProtectedException
|
||||||
import org.koitharu.kotatsu.core.model.MangaSource
|
import org.koitharu.kotatsu.core.model.MangaSource
|
||||||
@@ -62,7 +61,7 @@ class FaviconFetcher(
|
|||||||
loadIcon(icon.url, mangaSource)
|
loadIcon(icon.url, mangaSource)
|
||||||
} catch (e: CloudFlareProtectedException) {
|
} catch (e: CloudFlareProtectedException) {
|
||||||
throw e
|
throw e
|
||||||
} catch (e: IOException) {
|
} catch (e: HttpException) {
|
||||||
favicons -= icon
|
favicons -= icon
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user