Revert argument exception swallowing for Plex library update

This commit is contained in:
Mark McDowall 2023-03-23 17:33:34 -07:00
parent c35308b32b
commit ed140dd396
1 changed files with 4 additions and 11 deletions

View File

@ -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;
}
}
}