From 9dd66879a20e39f077acb152d7e2ac92c0b228cc Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Thu, 19 Mar 2015 01:17:25 +0100 Subject: [PATCH] Fixed: Better handling for Remote NAS errors. --- src/NzbDrone.Core/MediaFiles/MediaFileAttributeService.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/NzbDrone.Core/MediaFiles/MediaFileAttributeService.cs b/src/NzbDrone.Core/MediaFiles/MediaFileAttributeService.cs index e6c84af26..c0a4eba37 100644 --- a/src/NzbDrone.Core/MediaFiles/MediaFileAttributeService.cs +++ b/src/NzbDrone.Core/MediaFiles/MediaFileAttributeService.cs @@ -1,4 +1,5 @@ using System; +using System.IO; using NLog; using NzbDrone.Common.Disk; using NzbDrone.Common.EnvironmentInfo; @@ -39,15 +40,15 @@ namespace NzbDrone.Core.MediaFiles } catch (Exception ex) { - if (ex is UnauthorizedAccessException || ex is InvalidOperationException) + if (ex is UnauthorizedAccessException || ex is InvalidOperationException || ex is FileNotFoundException) { _logger.Debug("Unable to apply folder permissions to: ", path); _logger.DebugException(ex.Message, ex); } - else { - throw; + _logger.Warn("Unable to apply folder permissions to: ", path); + _logger.WarnException(ex.Message, ex); } } }