1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2025-01-01 21:04:22 +00:00

Fix mapper exception

This commit is contained in:
ta264 2019-12-16 21:35:13 +00:00 committed by Qstick
parent 65287ec4f3
commit 8021381de2

View file

@ -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 @@ private static void RegisterMappers()
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)