mirror of
https://github.com/Radarr/Radarr
synced 2026-03-04 11:32:23 +01:00
Minor fixes from Sentry.
This commit is contained in:
parent
1b6d6c26d5
commit
f7f155be1f
1 changed files with 6 additions and 1 deletions
|
|
@ -315,6 +315,11 @@ private bool HasVersion(int major, int minor, int patch = 0)
|
|||
|
||||
private Version ParseVersion(string version)
|
||||
{
|
||||
if (version.IsNullOrWhiteSpace())
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
var parsed = VersionRegex.Match(version);
|
||||
|
||||
int major;
|
||||
|
|
@ -352,7 +357,7 @@ private ValidationFailure TestConnectionAndVersion()
|
|||
|
||||
if (version == null)
|
||||
{
|
||||
return new ValidationFailure("Version", "Unknown Version: " + version);
|
||||
return new ValidationFailure("Version", "Unknown Version: " + rawVersion);
|
||||
}
|
||||
|
||||
if (rawVersion.Equals("develop", StringComparison.InvariantCultureIgnoreCase))
|
||||
|
|
|
|||
Loading…
Reference in a new issue