mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-05 10:32:35 +01:00
Fixed broken build
This commit is contained in:
parent
31c16b9004
commit
f6ccb5e17c
@ -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)
|
if (episodeFile == null)
|
||||||
throw new ArgumentNullException("episodeFile");
|
throw new ArgumentNullException("episodeFile");
|
||||||
|
@ -135,10 +135,11 @@ public virtual Series FindSeries(string title)
|
|||||||
return series;
|
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;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user