From ce68b92b8e5bfcdb9c36955dbbc7494efc04d7c6 Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Thu, 25 Jun 2026 02:19:25 +1000 Subject: Fixed issue where ThumbnailException is raised instead of ArgumentException when both width and height are null --- Services/MediaService.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Services/MediaService.cs') diff --git a/Services/MediaService.cs b/Services/MediaService.cs index cf51c42..d608cc9 100644 --- a/Services/MediaService.cs +++ b/Services/MediaService.cs @@ -299,9 +299,7 @@ public class MediaService : IMediaService { public Stream GetThumbnail(Guid mediaId, int? width, int? height) { if(width is null && height is null) - throw new ThumbnailException( - "Both width and height cannot be null!", - mediaId); + throw new ApiModels.ArgumentException("Both width and height cannot be null!"); var thumbPath = GetThumbnailPath(mediaId, width, height); -- cgit v1.3