mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
ignore exceptions while checking new releases
This commit is contained in:
parent
8a4adaec3a
commit
3a97ccb552
@ -563,7 +563,16 @@ namespace Bloxstrap
|
||||
|
||||
App.Logger.WriteLine($"[Bootstrapper::CheckForUpdates] Checking for updates...");
|
||||
|
||||
var releaseInfo = await Utility.Http.GetJson<GithubRelease>($"https://api.github.com/repos/{App.ProjectRepository}/releases/latest");
|
||||
GithubRelease? releaseInfo;
|
||||
try
|
||||
{
|
||||
releaseInfo = await Http.GetJson<GithubRelease>($"https://api.github.com/repos/{App.ProjectRepository}/releases/latest");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
App.Logger.WriteLine($"[Bootstrapper::CheckForUpdates] Failed to fetch releases: {ex}");
|
||||
return;
|
||||
}
|
||||
|
||||
if (releaseInfo is null || releaseInfo.Assets is null)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user