mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Catch exception
This commit is contained in:
parent
130033cf4b
commit
49d5cd36df
1 changed files with 9 additions and 1 deletions
|
|
@ -141,7 +141,15 @@ namespace Flow.Launcher.Infrastructure.Image
|
||||||
}
|
}
|
||||||
catch
|
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;
|
return hBitmap;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue