diff --git a/src/main/java/com/mazawrath/beanbot/commands/beancoin/BeanTriviaCommand.java b/src/main/java/com/mazawrath/beanbot/commands/beancoin/BeanTriviaCommand.java index 0dde1f5..24377be 100644 --- a/src/main/java/com/mazawrath/beanbot/commands/beancoin/BeanTriviaCommand.java +++ b/src/main/java/com/mazawrath/beanbot/commands/beancoin/BeanTriviaCommand.java @@ -163,14 +163,15 @@ public void onCommand(ServerTextChannel serverTextChannel, DiscordApi api, User winnersMessage.append("The correct answer was: ").append(correctAnswer).append(".\nAnyone who answered correctly received ").append(Points.pointsToString(Points.TRIVIA_CORRECT_ANSWER)).append("."); serverTextChannel.sendMessage(winnersMessage.toString()); - } catch (InterruptedException e) { - e.printStackTrace(); - } catch (ExecutionException e) { + } catch (Exception e) { e.printStackTrace(); + Sentry.capture(e); + serverTextChannel.sendMessage("Attempted to send trivia message but failed."); } }).start(); } catch (Exception e) { serverTextChannel.sendMessage("Attempted to send trivia message but failed."); + Sentry.capture(e); return; } } else {