Fixed exception when GetSeries(int seriesId) where seriesId didnt' exist

pull/4/head
kay.one 14 years ago
parent f4a765817b
commit aa836f6a88

@ -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>

Loading…
Cancel
Save