Handle a dumb error on shutdown.

This commit is contained in:
NovaFox161
2018-05-25 13:23:27 -05:00
parent b1fc3353aa
commit 7ffd7eacc7

View File

@@ -105,7 +105,7 @@ public class ApplicationHandler {
System.out.println("Shutting down Discord bot!");
try {
DisCalAPI.getAPI().getClient().logout();
} catch (DiscordException e) {
} catch (DiscordException | NoSuchMethodError e) {
//No need to print, exiting anyway.
e.printStackTrace();
}