Catch exception

This commit is contained in:
Jack251970 2025-09-23 12:24:44 +08:00
parent 130033cf4b
commit 49d5cd36df

View file

@ -141,7 +141,15 @@ namespace Flow.Launcher.Infrastructure.Image
}
catch
{
hBitmap = GetHBitmap(Path.GetFullPath(fileName), width, height, options);
try
{
hBitmap = GetHBitmap(Path.GetFullPath(fileName), width, height, options);
}
catch (System.Exception ex)
{
// Handle other exceptions
throw new InvalidOperationException("Failed to get thumbnail", ex);
}
}
return hBitmap;