diff --git a/core/src/main/java/eu/kanade/tachiyomi/network/interceptor/UncaughtExceptionInterceptor.kt b/core/src/main/java/eu/kanade/tachiyomi/network/interceptor/UncaughtExceptionInterceptor.kt index 2362b78c60..1de824381b 100644 --- a/core/src/main/java/eu/kanade/tachiyomi/network/interceptor/UncaughtExceptionInterceptor.kt +++ b/core/src/main/java/eu/kanade/tachiyomi/network/interceptor/UncaughtExceptionInterceptor.kt @@ -18,7 +18,11 @@ class UncaughtExceptionInterceptor : Interceptor { return try { chain.proceed(chain.request()) } catch (e: Exception) { - throw IOException(e) + if (e is IOException) { + throw e + } else { + throw IOException(e) + } } } }