mirror of
https://github.com/Radarr/Radarr
synced 2025-01-30 19:31:35 +00:00
Fixed broken build
This commit is contained in:
parent
31c16b9004
commit
f6ccb5e17c
2 changed files with 5 additions and 4 deletions
|
@ -143,7 +143,7 @@ public virtual EpisodeFile ImportFile(Series series, string filePath)
|
|||
}
|
||||
|
||||
|
||||
public virtual bool RenameEpisodeFile(EpisodeFile episodeFile)
|
||||
public virtual bool MoveEpisodeFile(EpisodeFile episodeFile)
|
||||
{
|
||||
if (episodeFile == null)
|
||||
throw new ArgumentNullException("episodeFile");
|
||||
|
|
|
@ -135,10 +135,11 @@ public virtual Series FindSeries(string title)
|
|||
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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue