diff --git a/TSOClient/FSO.Server.Api.Core/Services/GithubUpdateUploader.cs b/TSOClient/FSO.Server.Api.Core/Services/GithubUpdateUploader.cs index 9f9f9d015..3a3ff4a80 100644 --- a/TSOClient/FSO.Server.Api.Core/Services/GithubUpdateUploader.cs +++ b/TSOClient/FSO.Server.Api.Core/Services/GithubUpdateUploader.cs @@ -32,7 +32,14 @@ public async Task UploadFile(string destPath, string fileName, string gr var client = new GitHubClient(new ProductHeaderValue(Config.AppName), credentials); Release release; - release = await client.Repository.Release.Get(Config.User, Config.Repository, groupName); + try + { + release = await client.Repository.Release.Get(Config.User, Config.Repository, groupName); + } + catch (Exception) + { + release = null; + } if (release == null) { var newRel = new NewRelease(groupName); newRel.Body = Description;