Suppress boring exceptions

This commit is contained in:
Mygod
2022-02-21 21:01:04 -05:00
parent 977614f566
commit dbfc2c1f82

View File

@@ -10,6 +10,7 @@ import kotlinx.coroutines.flow.cancellable
import kotlinx.coroutines.flow.flow
import org.json.JSONArray
import timber.log.Timber
import java.io.IOException
import java.net.HttpURLConnection
import java.net.URL
import java.time.Instant
@@ -97,6 +98,8 @@ object UpdateChecker {
emit(update)
} catch (_: CancellationException) {
return@flow
} catch (e: IOException) {
Timber.i(e)
} catch (e: Exception) {
Timber.w(e)
} finally {