Throw IOException
This commit is contained in:
parent
2b174019af
commit
471c8c9909
1 changed files with 2 additions and 1 deletions
|
|
@ -26,6 +26,7 @@ import tachiyomi.core.common.util.system.logcat
|
||||||
import tachiyomi.domain.source.service.SourceManager
|
import tachiyomi.domain.source.service.SourceManager
|
||||||
import uy.kohesive.injekt.injectLazy
|
import uy.kohesive.injekt.injectLazy
|
||||||
import java.io.File
|
import java.io.File
|
||||||
|
import java.io.IOException
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A [Fetcher] that fetches page preview image for [PagePreview] object.
|
* A [Fetcher] that fetches page preview image for [PagePreview] object.
|
||||||
|
|
@ -128,7 +129,7 @@ class PagePreviewFetcher(
|
||||||
) ?: callFactoryLazy.value.newCall(newRequest()).await()
|
) ?: callFactoryLazy.value.newCall(newRequest()).await()
|
||||||
if (!response.isSuccessful && response.code != HTTP_NOT_MODIFIED) {
|
if (!response.isSuccessful && response.code != HTTP_NOT_MODIFIED) {
|
||||||
response.close()
|
response.close()
|
||||||
throw Exception(response.message)
|
throw IOException(response.message)
|
||||||
}
|
}
|
||||||
return response
|
return response
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue