Skip to content

Commit 2245c0a

Browse files
Fix: Handle IOException when reading Windows INI file (#17443)
Co-authored-by: seer-by-sentry[bot] <157164994+seer-by-sentry[bot]@users.noreply.github.com>
1 parent e826ab6 commit 2245c0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Files.App/Services/Windows/WindowsIniService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public List<IniSectionDataItem> GetData(string filePath)
2020
.Where(line => !line.StartsWith(';') && !string.IsNullOrEmpty(line))
2121
.ToList();
2222
}
23-
catch (Exception ex) when (ex is UnauthorizedAccessException || ex is SystemIO.FileNotFoundException)
23+
catch (Exception ex) when (ex is UnauthorizedAccessException || ex is SystemIO.FileNotFoundException || ex is SystemIO.IOException)
2424
{
2525
return [];
2626
}

0 commit comments

Comments
 (0)