From f756b71207f49df654808606d5721ea74d98c17f Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Sat, 21 Feb 2026 20:34:57 +0800 Subject: [PATCH] Catch all exceptions --- Flow.Launcher.Infrastructure/UserSettings/DataLocation.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Flow.Launcher.Infrastructure/UserSettings/DataLocation.cs b/Flow.Launcher.Infrastructure/UserSettings/DataLocation.cs index 4c3a7b417..94dda11df 100644 --- a/Flow.Launcher.Infrastructure/UserSettings/DataLocation.cs +++ b/Flow.Launcher.Infrastructure/UserSettings/DataLocation.cs @@ -64,9 +64,7 @@ namespace Flow.Launcher.Infrastructure.UserSettings { return Path.GetFullPath(Path.Combine(Constant.ProgramDirectory, path)); } - catch (System.Exception ex) when (ex is ArgumentException || - ex is NotSupportedException || - ex is PathTooLongException) + catch (System.Exception) { // If the path cannot be resolved (invalid characters, format, or too long), // return the original path to avoid crashing the application.