diff --git a/src/main/java/net/thauvin/erik/mobibot/commands/tell/TellMessagesMgr.java b/src/main/java/net/thauvin/erik/mobibot/commands/tell/TellMessagesMgr.java index c03af95..fd98c72 100644 --- a/src/main/java/net/thauvin/erik/mobibot/commands/tell/TellMessagesMgr.java +++ b/src/main/java/net/thauvin/erik/mobibot/commands/tell/TellMessagesMgr.java @@ -100,9 +100,7 @@ final class TellMessagesMgr { } } catch (FileNotFoundException ignore) { // Do nothing - } catch (IOException e) { - logger.error("An IO error occurred loading the messages queue.", e); - } catch (Exception e) { + } catch (IOException | ClassNotFoundException e) { logger.error("An error occurred loading the messages queue.", e); }