Revert "Catch exception"

This reverts commit 49d5cd36df.
This commit is contained in:
Jack251970 2025-09-23 20:48:41 +08:00
parent 49d5cd36df
commit 9b2d36b78a

View file

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