diff --git a/src/NzbDrone.Core/MediaFiles/DownloadedEpisodesImportService.cs b/src/NzbDrone.Core/MediaFiles/DownloadedEpisodesImportService.cs index ec8b5eded..931c13b6a 100644 --- a/src/NzbDrone.Core/MediaFiles/DownloadedEpisodesImportService.cs +++ b/src/NzbDrone.Core/MediaFiles/DownloadedEpisodesImportService.cs @@ -111,7 +111,8 @@ namespace NzbDrone.Core.MediaFiles { var videoFiles = _diskScanService.GetVideoFiles(directoryInfo.FullName); var rarFiles = _diskProvider.GetFiles(directoryInfo.FullName, SearchOption.AllDirectories).Where(f => - Path.GetExtension(f).Equals(".rar", StringComparison.OrdinalIgnoreCase)); + Path.GetExtension(f).Equals(".rar", + StringComparison.OrdinalIgnoreCase)); foreach (var videoFile in videoFiles) { @@ -144,6 +145,11 @@ namespace NzbDrone.Core.MediaFiles _logger.Debug(e, "Folder {0} has already been removed", directoryInfo.FullName); return false; } + catch (Exception e) + { + _logger.Debug(e, "Unable to determine whether folder {0} should be removed", directoryInfo.FullName); + return false; + } } private List ProcessFolder(DirectoryInfo directoryInfo, ImportMode importMode, DownloadClientItem downloadClientItem)