1
0
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:
Taloth Saldono 2017-07-28 20:01:45 +02:00
parent 1b6d6c26d5
commit f7f155be1f

View File

@ -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))