Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixes some possible assembly loading errors

  • Loading branch information...
commit acbda2015c676f42c5e01b94a208a1e7012b632e 1 parent 776d720
chris.nicola authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/Nancy/Extensions/AssemblyExtensions.cs
View
7 src/Nancy/Extensions/AssemblyExtensions.cs
@@ -31,6 +31,13 @@ public static Type[] SafeGetExportedTypes(this Assembly assembly)
{
types = new Type[] { };
}
+ catch (FileLoadException)
+ {
+ types = new Type[] { };
+ }
+ catch (TypeLoadException) {
+ types = new Type[] { };
+ }
return types;
}
Please sign in to comment.
Something went wrong with that request. Please try again.