diff --git a/src/magic/ui/viewer/ImageViewer.java b/src/magic/ui/viewer/ImageViewer.java index 80872436f4..d7f26a39b1 100644 --- a/src/magic/ui/viewer/ImageViewer.java +++ b/src/magic/ui/viewer/ImageViewer.java @@ -8,6 +8,7 @@ import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.awt.image.BufferedImage; import java.io.File; +import java.io.IOException; import java.util.ArrayList; import java.util.Collections; import java.util.List; @@ -92,7 +93,7 @@ public class ImageViewer extends JPanel implements DelayedViewer { if (imageFile!=null) { readImage=ImageIO.read(imageFile); } - } catch (final Exception ex) { + } catch (final IOException ex) { System.err.println("WARNING. Unable to read from " + imageFile.getName()); }