From 27e3b4b4182ba9c35e80168240082ea183ce276a Mon Sep 17 00:00:00 2001 From: ByteDream Date: Tue, 8 Dec 2020 18:33:22 +0100 Subject: [PATCH] Removed message when an error occurs while checking the timetable --- src/org/bytedream/untisbot/discord/DiscordCommandListener.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/org/bytedream/untisbot/discord/DiscordCommandListener.java b/src/org/bytedream/untisbot/discord/DiscordCommandListener.java index c7bff5d..cb967d3 100755 --- a/src/org/bytedream/untisbot/discord/DiscordCommandListener.java +++ b/src/org/bytedream/untisbot/discord/DiscordCommandListener.java @@ -154,7 +154,6 @@ public class DiscordCommandListener extends ListenerAdapter { classId = (short) session.getKlassen().findByName(arg).getId(); } catch (IOException e) { logger.warn(guildId + " ran into an exception while trying to receive classes for a timetable", e); - channel.sendMessage("Couldn't search the class. Try again (later) or contact my author <@650417934073593886>, if the problem won't go away").queue(); return; } catch (NullPointerException e) { channel.sendMessage("Couldn't find any class with the name '" + arg + "'").queue();