Game doesn't crash when being unable to go to the github repo page

This commit is contained in:
MatteoS 2015-08-08 16:29:08 +02:00
parent 110e54e063
commit b537b83736

View File

@ -501,7 +501,7 @@ public class MainMenu extends BasicGameState {
else if (repoButton != null && repoButton.contains(x, y)) {
try {
Desktop.getDesktop().browse(Options.REPOSITORY_URI);
} catch (IOException e) {
} catch (IOException | UnsupportedOperationException e) {
ErrorHandler.error("Could not browse to repository URI.", e, false);
}
}