mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
Fixed crash/error #865
This commit is contained in:
parent
9bb29aac33
commit
8695383abf
1 changed files with 10 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue