mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 12:59:39 -07:00
Fixed crash/error #865
This commit is contained in:
parent
9bb29aac33
commit
8695383abf
1 changed files with 10 additions and 3 deletions
|
@ -43,11 +43,18 @@ namespace Ombi.Schedule.Jobs.Ombi
|
||||||
return productArray;
|
return productArray;
|
||||||
}
|
}
|
||||||
public async Task<bool> UpdateAvailable(string branch, string currentVersion)
|
public async Task<bool> UpdateAvailable(string branch, string currentVersion)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
var updates = await OmbiService.GetUpdates(branch);
|
var updates = await OmbiService.GetUpdates(branch);
|
||||||
var serverVersion = updates.UpdateVersionString;
|
var serverVersion = updates.UpdateVersionString;
|
||||||
return !serverVersion.Equals(currentVersion, StringComparison.CurrentCultureIgnoreCase);
|
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)
|
public async Task Update(PerformContext c)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue