Skip to content

Commit

Permalink
Fix throw on network error for github update checking
Browse files Browse the repository at this point in the history
  • Loading branch information
charliefoxtwo committed Dec 17, 2022
1 parent 2f2e702 commit 3bbba45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ViLA/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,10 @@ private static async Task CheckVersionAgainstGithub(string name, Version current
{
response = await client.GetAsync<List<GithubReleaseResponse>>(request);
}
catch (JsonSerializationException ex)
catch (Exception ex)
{
// probably a github rate limit. we'll just skip for now
// network can also be offline
return;
}

Expand Down

0 comments on commit 3bbba45

Please sign in to comment.