mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 04:59:35 -07:00
Fixed exception when GetSeries(int seriesId) where seriesId didnt' exist
This commit is contained in:
parent
f4a765817b
commit
aa836f6a88
2 changed files with 1 additions and 1 deletions
Binary file not shown.
|
@ -44,7 +44,7 @@ namespace NzbDrone.Core.Providers
|
|||
|
||||
public virtual Series GetSeries(int seriesId)
|
||||
{
|
||||
return _database.Single<Series>("WHERE seriesId= @0", seriesId);
|
||||
return _database.SingleOrDefault<Series>("WHERE seriesId= @0", seriesId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue