Removed message when an error occurs while checking the timetable

This commit is contained in:
ByteDream 2020-12-08 18:33:22 +01:00
parent b879f74f2a
commit 27e3b4b418

View File

@ -154,7 +154,6 @@ public class DiscordCommandListener extends ListenerAdapter {
classId = (short) session.getKlassen().findByName(arg).getId(); classId = (short) session.getKlassen().findByName(arg).getId();
} catch (IOException e) { } catch (IOException e) {
logger.warn(guildId + " ran into an exception while trying to receive classes for a timetable", 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; return;
} catch (NullPointerException e) { } catch (NullPointerException e) {
channel.sendMessage("Couldn't find any class with the name '" + arg + "'").queue(); channel.sendMessage("Couldn't find any class with the name '" + arg + "'").queue();