mirror of
https://github.com/C9Glax/tranga.git
synced 2025-06-29 23:44:17 +02:00
Only log Error on image-processing if we dont know what Exception was thrown
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user