mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-20 01:06: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":
|
||||
continue;
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user