mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Catch all exceptions
This commit is contained in:
parent
bfed5168f0
commit
f756b71207
1 changed files with 1 additions and 3 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue