Fix mapper exception

pull/4072/head
ta264 5 years ago committed by Qstick
parent 65287ec4f3
commit 8021381de2

@ -1,5 +1,6 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq;
using Dapper; using Dapper;
using NzbDrone.Common.Reflection; using NzbDrone.Common.Reflection;
using NzbDrone.Core.Authentication; using NzbDrone.Core.Authentication;
@ -171,7 +172,8 @@ namespace NzbDrone.Core.Datastore
private static void RegisterProviderSettingConverter() private static void RegisterProviderSettingConverter()
{ {
var settingTypes = typeof(IProviderConfig).Assembly.ImplementationsOf<IProviderConfig>(); var settingTypes = typeof(IProviderConfig).Assembly.ImplementationsOf<IProviderConfig>()
.Where(x => !x.ContainsGenericParameters);
var providerSettingConverter = new ProviderSettingConverter(); var providerSettingConverter = new ProviderSettingConverter();
foreach (var embeddedType in settingTypes) foreach (var embeddedType in settingTypes)

Loading…
Cancel
Save