Skip to content

Commit 8cf86ad

Browse files
authored
Fix: Fixed crash that could occur when checking for updates (#15669)
1 parent f0a6167 commit 8cf86ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Files.App/Services/App/AppUpdateStoreService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,10 @@ private async Task GetUpdatePackagesAsync()
132132
var updateList = await _storeContext.GetAppAndOptionalStorePackageUpdatesAsync();
133133
_updatePackages = updateList?.ToList();
134134
}
135-
catch (FileNotFoundException)
135+
catch (Exception ex)
136136
{
137-
// Suppress the FileNotFoundException.
138137
// GetAppAndOptionalStorePackageUpdatesAsync throws for unknown reasons.
138+
App.Logger.LogWarning(ex, ex.Message);
139139
}
140140
}
141141

0 commit comments

Comments
 (0)