Revert argument exception swallowing for Plex library update

pull/5521/head
Mark McDowall 1 year ago
parent c35308b32b
commit ed140dd396

@ -102,19 +102,12 @@ namespace NzbDrone.Core.Notifications.Plex.Server
{
foreach (var location in section.Locations)
{
try
if (location.Path.PathEquals(rootFolderPath))
{
if (location.Path.PathEquals(rootFolderPath))
{
_logger.Debug("Updating matching section location, {0}", location.Path);
UpdateSectionPath(seriesRelativePath, section, location, settings);
_logger.Debug("Updating matching section location, {0}", location.Path);
UpdateSectionPath(seriesRelativePath, section, location, settings);
return;
}
}
catch (ArgumentException)
{
// Swallow argument exception that is thrown by path comparison when comparing paths from different OSes
return;
}
}
}

Loading…
Cancel
Save