mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
Merge pull request #391 from bluepilledgreat/version-2.4.0-ignore-auto-update-errors
ignore exceptions while fetching new releases
This commit is contained in:
commit
6fe62dd387
@ -563,7 +563,16 @@ namespace Bloxstrap
|
|||||||
|
|
||||||
App.Logger.WriteLine($"[Bootstrapper::CheckForUpdates] Checking for updates...");
|
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)
|
if (releaseInfo is null || releaseInfo.Assets is null)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user