Be more specific in the types of exceptions that cause a load to fail, and break when we get a successful load
This commit is contained in:
parent
7aea179ac7
commit
c490774627
@ -301,10 +301,16 @@ namespace UniversalEditor.Common
|
||||
{
|
||||
DataFormat df = dfr.Create();
|
||||
Document.Load(om, df, accessor);
|
||||
break;
|
||||
}
|
||||
catch
|
||||
catch (InvalidDataFormatException ex)
|
||||
{
|
||||
accessor.Close();
|
||||
accessor.Close ();
|
||||
continue;
|
||||
}
|
||||
catch (NotImplementedException ex)
|
||||
{
|
||||
accessor.Close ();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user