Removed specific AWT catch

It's better if we handle it here instead of bubbling the exception up the stack.
This commit is contained in:
ipkpjersi 2024-01-06 16:13:18 -05:00
parent 008324aa84
commit 328e24e243

View file

@ -551,8 +551,6 @@ public final class client extends GameShell {
BufferedImage image = robot.createScreenCapture(captureSize);
File outputFile = new File(outputFolder, filename);
ImageIO.write(image, "png", outputFile);
} catch (AWTException e) {
throw new RuntimeException(e);
} catch (Exception e) {
e.printStackTrace();
}