diff --git a/ui/src/main/java/com/wireguard/android/fragment/TunnelListFragment.kt b/ui/src/main/java/com/wireguard/android/fragment/TunnelListFragment.kt index 78c98161..cb3636fe 100644 --- a/ui/src/main/java/com/wireguard/android/fragment/TunnelListFragment.kt +++ b/ui/src/main/java/com/wireguard/android/fragment/TunnelListFragment.kt @@ -62,10 +62,7 @@ class TunnelListFragment : BaseFragment() { // Config text is valid, now create the tunnel… newInstance(configText).show(parentFragmentManager, null) } catch (e: Exception) { - when(e) { - is BadConfigException, is IOException -> onTunnelImportFinished(emptyList(), listOf(e)) - else -> throw e - } + onTunnelImportFinished(emptyList(), listOf(e)) } }