Wrap uncommon exception

This commit is contained in:
Matt Nadareski
2020-08-17 13:48:05 -07:00
parent e7053e1ea3
commit 939da19af8

View File

@@ -163,7 +163,16 @@ namespace SabreTools.Library.IO
}
// Get the parent path in case of appending
string parentPath = Path.GetFullPath(input);
string parentPath;
try
{
parentPath = Path.GetFullPath(input);
}
catch (Exception ex)
{
Globals.Logger.Error(ex.ToString());
continue;
}
if (Directory.Exists(input))
{