mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 04:49:33 -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)
|
public async Task<bool> UpdateAvailable(string branch, string currentVersion)
|
||||||
{
|
{
|
||||||
var updates = await OmbiService.GetUpdates(branch);
|
try
|
||||||
var serverVersion = updates.UpdateVersionString;
|
{
|
||||||
return !serverVersion.Equals(currentVersion, StringComparison.CurrentCultureIgnoreCase);
|
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)
|
public async Task Update(PerformContext c)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue