Fixed crash/error #865

pull/1529/head
tidusjar 7 years ago
parent 9bb29aac33
commit 8695383abf

@ -44,9 +44,16 @@ namespace Ombi.Schedule.Jobs.Ombi
}
public async Task<bool> UpdateAvailable(string branch, string currentVersion)
{
var updates = await OmbiService.GetUpdates(branch);
var serverVersion = updates.UpdateVersionString;
return !serverVersion.Equals(currentVersion, StringComparison.CurrentCultureIgnoreCase);
try
{
var updates = await OmbiService.GetUpdates(branch);
var serverVersion = updates.UpdateVersionString;
return !serverVersion.Equals(currentVersion, StringComparison.CurrentCultureIgnoreCase);
}
catch (Exception e)
{
Logger.LogError(e, "Attempted to check if there was an update");
}
}
public async Task Update(PerformContext c)

Loading…
Cancel
Save