Skip to content

Commit c024e88

Browse files
committed
skip error wallet
1 parent f5f3b37 commit c024e88

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

wallet/src/androidMain/kotlin/com/dimension/maskbook/wallet/repository/WalletRepository.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,12 @@ internal class WalletRepository(
914914
platformType = CoinPlatformType.Ethereum
915915
)
916916
} else if (!privateKey.isNullOrEmpty()) {
917-
importWallet(name = data.name, privateKey = privateKey, platformType = CoinPlatformType.Ethereum)
917+
try {
918+
importWallet(name = data.name, privateKey = privateKey, platformType = CoinPlatformType.Ethereum)
919+
} catch (e: Exception) {
920+
// just ignore it, lol
921+
e.printStackTrace()
922+
}
918923
} else {
919924
// not a valid backup
920925
}

0 commit comments

Comments
 (0)