From f6ccb5e17c8a0a4e888e7003f89d745a27b15ec3 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Tue, 21 Jun 2011 18:22:52 -0700 Subject: [PATCH] Fixed broken build --- NzbDrone.Core/Providers/DiskScanProvider.cs | 2 +- NzbDrone.Core/Providers/SeriesProvider.cs | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/NzbDrone.Core/Providers/DiskScanProvider.cs b/NzbDrone.Core/Providers/DiskScanProvider.cs index 8e38bd616..be123a816 100644 --- a/NzbDrone.Core/Providers/DiskScanProvider.cs +++ b/NzbDrone.Core/Providers/DiskScanProvider.cs @@ -143,7 +143,7 @@ namespace NzbDrone.Core.Providers } - public virtual bool RenameEpisodeFile(EpisodeFile episodeFile) + public virtual bool MoveEpisodeFile(EpisodeFile episodeFile) { if (episodeFile == null) throw new ArgumentNullException("episodeFile"); diff --git a/NzbDrone.Core/Providers/SeriesProvider.cs b/NzbDrone.Core/Providers/SeriesProvider.cs index 0271e8ab7..896f09a02 100644 --- a/NzbDrone.Core/Providers/SeriesProvider.cs +++ b/NzbDrone.Core/Providers/SeriesProvider.cs @@ -135,10 +135,11 @@ namespace NzbDrone.Core.Providers return series; } - //This will catch InvalidOperationExceptions that may be thrown for GetSeries due to the series being in SceneMapping, but not in the users Database - catch (InvalidOperationException ex) + + catch (InvalidOperationException) { - Logger.DebugException(ex.Message, ex); + //This will catch InvalidOperationExceptions(Sequence contains no element) + //that may be thrown for GetSeries due to the series being in SceneMapping, but not in the users Database return null; } }