diff --git a/ios/MullvadVPN/TunnelManager/LoadTunnelConfigurationOperation.swift b/ios/MullvadVPN/TunnelManager/LoadTunnelConfigurationOperation.swift index 74881d49694d..d4c86a74f101 100644 --- a/ios/MullvadVPN/TunnelManager/LoadTunnelConfigurationOperation.swift +++ b/ios/MullvadVPN/TunnelManager/LoadTunnelConfigurationOperation.swift @@ -61,7 +61,8 @@ class LoadTunnelConfigurationOperation: ResultOperation { private func readSettings() -> Result { Result { try SettingsManager.readSettings() } .flatMapError { error in - if let error = error as? KeychainError, error == .itemNotFound { + if let error = error as? ReadSettingsVersionError, + let keychainError = error.underlyingError as? KeychainError, keychainError == .itemNotFound { logger.debug("Settings not found in keychain.") return .success(nil)