summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/ModHelper.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/StardewModdingAPI/ModHelper.cs')
-rw-r--r--src/StardewModdingAPI/ModHelper.cs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/StardewModdingAPI/ModHelper.cs b/src/StardewModdingAPI/ModHelper.cs
index 7989be74..7304c5ea 100644
--- a/src/StardewModdingAPI/ModHelper.cs
+++ b/src/StardewModdingAPI/ModHelper.cs
@@ -76,11 +76,7 @@ namespace StardewModdingAPI
{
json = File.ReadAllText(fullPath);
}
- catch (FileNotFoundException)
- {
- return null;
- }
- catch (DirectoryNotFoundException)
+ catch (Exception ex) when (ex is DirectoryNotFoundException || ex is FileNotFoundException)
{
return null;
}