mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-22 07:41:51 +01:00
Don't unnecessarily wrap IOExceptions in UncaughtExceptionInterceptor
This commit is contained in:
parent
be54b8862e
commit
1814b3b22c
@ -18,7 +18,11 @@ class UncaughtExceptionInterceptor : Interceptor {
|
|||||||
return try {
|
return try {
|
||||||
chain.proceed(chain.request())
|
chain.proceed(chain.request())
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
throw IOException(e)
|
if (e is IOException) {
|
||||||
|
throw e
|
||||||
|
} else {
|
||||||
|
throw IOException(e)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user