Post.create now catching broader Exceptions

This commit is contained in:
2025-10-22 15:59:12 +02:00
parent 4e65f2a322
commit 36ee517a4a

View File

@@ -64,7 +64,7 @@ public class Post {
file.getParentFile().mkdirs(); file.getParentFile().mkdirs();
Files.writeString(file.toPath(),text, StandardCharsets.UTF_8); Files.writeString(file.toPath(),text, StandardCharsets.UTF_8);
return post.save(); return post.save();
} catch (MessagingException | IOException | SQLException e) { } catch (Exception e) {
LOG.warn("Failed to create post from {}",message); LOG.warn("Failed to create post from {}",message);
} }
return null; return null;