mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-10-30 15:32:31 +01:00
Minor fixes from Sentry.
This commit is contained in:
parent
1b6d6c26d5
commit
f7f155be1f
@ -315,6 +315,11 @@ namespace NzbDrone.Core.Download.Clients.Sabnzbd
|
||||
|
||||
private Version ParseVersion(string version)
|
||||
{
|
||||
if (version.IsNullOrWhiteSpace())
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
var parsed = VersionRegex.Match(version);
|
||||
|
||||
int major;
|
||||
@ -352,7 +357,7 @@ namespace NzbDrone.Core.Download.Clients.Sabnzbd
|
||||
|
||||
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 New Issue
Block a user