Fixes incorrectly handling misc. CancellationErrors

This commit is contained in:
Riley Testut
2023-05-26 15:11:46 -05:00
committed by Magesh K
parent c83d486269
commit 4f6eaf1aac
2 changed files with 15 additions and 0 deletions

View File

@@ -223,6 +223,11 @@ private extension BackgroundRefreshAppsOperation
{
shouldPresentAlert = false
}
catch ~OperationError.Code.serverNotFound
{
shouldPresentAlert = false
}
catch
{
print("Failed to refresh apps in background.", error)