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:
Michael Becker 2016-06-15 01:09:24 -04:00
parent 7aea179ac7
commit c490774627

View File

@ -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;
}
}