diff --git a/src/ImageSharp/Processing/Processors/CloningImageProcessor{TPixel}.cs b/src/ImageSharp/Processing/Processors/CloningImageProcessor{TPixel}.cs
index 2a41329a63..3e420ca03b 100644
--- a/src/ImageSharp/Processing/Processors/CloningImageProcessor{TPixel}.cs
+++ b/src/ImageSharp/Processing/Processors/CloningImageProcessor{TPixel}.cs
@@ -46,38 +46,25 @@ namespace SixLabors.ImageSharp.Processing.Processors
///
Image ICloningImageProcessor.CloneAndExecute()
{
- try
- {
- Image clone = this.CreateTarget();
- this.CheckFrameCount(this.Source, clone);
+ Image clone = this.CreateTarget();
+ this.CheckFrameCount(this.Source, clone);
- Configuration configuration = this.Configuration;
- this.BeforeImageApply(clone);
+ Configuration configuration = this.Configuration;
+ this.BeforeImageApply(clone);
- for (int i = 0; i < this.Source.Frames.Count; i++)
- {
- ImageFrame sourceFrame = this.Source.Frames[i];
- ImageFrame clonedFrame = clone.Frames[i];
+ for (int i = 0; i < this.Source.Frames.Count; i++)
+ {
+ ImageFrame sourceFrame = this.Source.Frames[i];
+ ImageFrame clonedFrame = clone.Frames[i];
- this.BeforeFrameApply(sourceFrame, clonedFrame);
- this.OnFrameApply(sourceFrame, clonedFrame);
- this.AfterFrameApply(sourceFrame, clonedFrame);
- }
+ this.BeforeFrameApply(sourceFrame, clonedFrame);
+ this.OnFrameApply(sourceFrame, clonedFrame);
+ this.AfterFrameApply(sourceFrame, clonedFrame);
+ }
- this.AfterImageApply(clone);
+ this.AfterImageApply(clone);
- return clone;
- }
-#if DEBUG
- catch (Exception)
- {
- throw;
-#else
- catch (Exception ex)
- {
- throw new ImageProcessingException($"An error occurred when processing the image using {this.GetType().Name}. See the inner exception for more detail.", ex);
-#endif
- }
+ return clone;
}
///