Hidden file not found exception when trying to fetch the icons from gravatar

This commit is contained in:
Abdelilah El Aissaoui 2022-04-09 18:58:30 +02:00
parent f03165f70a
commit 9f51893ed2

View File

@ -10,6 +10,7 @@ import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.sync.Semaphore
import kotlinx.coroutines.withContext
import org.jetbrains.skia.Image
import java.io.FileNotFoundException
import java.net.HttpURLConnection
import java.net.URL
@ -33,7 +34,8 @@ object NetworkImageLoader {
}
} catch (ex: Exception) {
ex.printStackTrace()
if(ex !is FileNotFoundException)
ex.printStackTrace()
}
// If a previous return hasn't been called, something has gone wrong, return null