mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-20 09:16:01 +08:00
Avoid an exceptions that break the loop and can't read remains assemblies
This commit is contained in:
parent
e09c60a702
commit
a46480a987
@ -149,7 +149,15 @@ namespace XNode {
|
|||||||
case "Microsoft":
|
case "Microsoft":
|
||||||
continue;
|
continue;
|
||||||
default:
|
default:
|
||||||
nodeTypes.AddRange(assembly.GetTypes().Where(t => !t.IsAbstract && baseType.IsAssignableFrom(t)).ToArray());
|
try
|
||||||
|
{
|
||||||
|
nodeTypes.AddRange(assembly.GetTypes().Where(t => !t.IsAbstract && baseType.IsAssignableFrom(t)).ToArray());
|
||||||
|
}
|
||||||
|
catch (System.Exception ex)
|
||||||
|
{
|
||||||
|
Debug.LogError("Catched exception when building " + assemblyName + " caches");
|
||||||
|
Debug.LogException(ex);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user