mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-29 13:25:13 +02:00
Fixed exception when GetSeries(int seriesId) where seriesId didnt' exist
This commit is contained in:
Binary file not shown.
@@ -44,7 +44,7 @@ namespace NzbDrone.Core.Providers
|
|||||||
|
|
||||||
public virtual Series GetSeries(int seriesId)
|
public virtual Series GetSeries(int seriesId)
|
||||||
{
|
{
|
||||||
return _database.Single<Series>("WHERE seriesId= @0", seriesId);
|
return _database.SingleOrDefault<Series>("WHERE seriesId= @0", seriesId);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Reference in New Issue
Block a user