Skip to content

Commit

Permalink
Handle URISyntaxException in AddRpc page
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelekol committed Nov 13, 2024
1 parent 39b094c commit 15a49fa
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import io.horizontalsystems.bankwallet.core.stats.stat
import io.horizontalsystems.marketkit.models.Blockchain
import java.net.MalformedURLException
import java.net.URI
import java.net.URISyntaxException

class AddRpcViewModel(
private val blockchain: Blockchain,
Expand Down Expand Up @@ -50,7 +51,7 @@ class AddRpcViewModel(
if (!hasRequiredProtocol) {
throw MalformedURLException()
}
} catch (e: MalformedURLException) {
} catch (e: Throwable) {
urlCaution = Caution(Translator.getString(R.string.AddEvmSyncSource_Error_InvalidUrl), Caution.Type.Error)
syncState()
return
Expand Down

0 comments on commit 15a49fa

Please sign in to comment.