mirror of https://github.com/Radarr/Radarr
Revert argument exception swallowing for Plex library update
Closes #8264
This commit is contained in:
parent
85aac789f4
commit
836017c01b
|
@ -105,8 +105,6 @@ namespace NzbDrone.Core.Notifications.Plex.Server
|
||||||
var rootFolder = new OsPath(rootFolderPath);
|
var rootFolder = new OsPath(rootFolderPath);
|
||||||
var mappedPath = new OsPath(settings.MapTo) + (rootFolder - new OsPath(settings.MapFrom));
|
var mappedPath = new OsPath(settings.MapTo) + (rootFolder - new OsPath(settings.MapFrom));
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
if (location.Path.PathEquals(mappedPath.FullPath))
|
if (location.Path.PathEquals(mappedPath.FullPath))
|
||||||
{
|
{
|
||||||
_logger.Debug("Updating matching section location, {0}", location.Path);
|
_logger.Debug("Updating matching section location, {0}", location.Path);
|
||||||
|
@ -115,11 +113,6 @@ namespace NzbDrone.Core.Notifications.Plex.Server
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (ArgumentException)
|
|
||||||
{
|
|
||||||
// Swallow argument exception that is thrown by path comparison when comparing paths from different OSes
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_logger.Debug("Unable to find matching section location, updating all Movie sections");
|
_logger.Debug("Unable to find matching section location, updating all Movie sections");
|
||||||
|
|
Loading…
Reference in New Issue