From d05cf7140cb24179b7e8ce1c9ebba0a45d2c375a Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Sat, 27 May 2023 13:52:57 +0200 Subject: [PATCH] Fail gracefully when refreshing infrastructure (#307) --- Passepartout/App/Views/ProfileView+Provider.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Passepartout/App/Views/ProfileView+Provider.swift b/Passepartout/App/Views/ProfileView+Provider.swift index 224282de..9b1616f7 100644 --- a/Passepartout/App/Views/ProfileView+Provider.swift +++ b/Passepartout/App/Views/ProfileView+Provider.swift @@ -148,7 +148,7 @@ extension ProfileView { private func refreshInfrastructure() { isRefreshingInfrastructure = true Task { @MainActor in - try await providerManager.fetchRemoteProviderPublisher(forProfile: profile).async() + try? await providerManager.fetchRemoteProviderPublisher(forProfile: profile).async() isRefreshingInfrastructure = false } }