Suppress boring exceptions
This commit is contained in:
@@ -10,6 +10,7 @@ import kotlinx.coroutines.flow.cancellable
|
|||||||
import kotlinx.coroutines.flow.flow
|
import kotlinx.coroutines.flow.flow
|
||||||
import org.json.JSONArray
|
import org.json.JSONArray
|
||||||
import timber.log.Timber
|
import timber.log.Timber
|
||||||
|
import java.io.IOException
|
||||||
import java.net.HttpURLConnection
|
import java.net.HttpURLConnection
|
||||||
import java.net.URL
|
import java.net.URL
|
||||||
import java.time.Instant
|
import java.time.Instant
|
||||||
@@ -97,6 +98,8 @@ object UpdateChecker {
|
|||||||
emit(update)
|
emit(update)
|
||||||
} catch (_: CancellationException) {
|
} catch (_: CancellationException) {
|
||||||
return@flow
|
return@flow
|
||||||
|
} catch (e: IOException) {
|
||||||
|
Timber.i(e)
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
Timber.w(e)
|
Timber.w(e)
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
Reference in New Issue
Block a user