Skip to content

Commit 9b2d36b

Browse files
committed
Revert "Catch exception"
This reverts commit 49d5cd3.
1 parent 49d5cd3 commit 9b2d36b

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

Flow.Launcher.Infrastructure/Image/ThumbnailReader.cs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -141,15 +141,7 @@ private static unsafe HBITMAP GetHBitmapForUrlFile(string fileName, int width, i
141141
}
142142
catch
143143
{
144-
try
145-
{
146-
hBitmap = GetHBitmap(Path.GetFullPath(fileName), width, height, options);
147-
}
148-
catch (System.Exception ex)
149-
{
150-
// Handle other exceptions
151-
throw new InvalidOperationException("Failed to get thumbnail", ex);
152-
}
144+
hBitmap = GetHBitmap(Path.GetFullPath(fileName), width, height, options);
153145
}
154146

155147
return hBitmap;

0 commit comments

Comments
 (0)