fix keen compiler assemblies fuckery

This commit is contained in:
zznty
2023-02-21 22:43:30 +07:00
parent 2b1a5d4c6e
commit 9c22948ce9
2 changed files with 2 additions and 11 deletions

View File

@@ -62,7 +62,7 @@ namespace Torch.Managers
{
File.Delete(source);
}
catch (IOException)
catch (Exception e) when (e is IOException or UnauthorizedAccessException)
{
var tempFilePath = Path.Combine(path, file + ".old");
if (File.Exists(tempFilePath))