Only log Error on image-processing if we dont know what Exception was thrown

This commit is contained in:
2025-06-28 20:13:09 +02:00
parent 861cf7e166
commit 9a4cc0cbaf

View File

@ -153,7 +153,6 @@ public class DownloadSingleChapterJob : Job
}
catch (Exception e)
{
Log.Error(e);
if (e is UnknownImageFormatException or NotSupportedException)
{
//If the Image-Format is not processable by ImageSharp, we can't modify it.
@ -162,6 +161,10 @@ public class DownloadSingleChapterJob : Job
{
Log.Debug($"Unable to process {imagePath}: Invalid Content");
}
else
{
Log.Error(e);
}
}
}