From e89f6874dcaf04ae4199d7c3fa4e28e4930b8ca0 Mon Sep 17 00:00:00 2001 From: Marcus Fihlon Date: Sat, 6 Apr 2024 23:32:22 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A5=85=20Catch=20all=20exceptions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcus Fihlon --- .../java/swiss/fihlon/apus/social/mastodon/MastodonAPI.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/swiss/fihlon/apus/social/mastodon/MastodonAPI.java b/src/main/java/swiss/fihlon/apus/social/mastodon/MastodonAPI.java index bf9e608..c7e62ed 100644 --- a/src/main/java/swiss/fihlon/apus/social/mastodon/MastodonAPI.java +++ b/src/main/java/swiss/fihlon/apus/social/mastodon/MastodonAPI.java @@ -25,7 +25,6 @@ import social.bigbone.api.entity.Account; import social.bigbone.api.entity.MediaAttachment; import social.bigbone.api.entity.Status; -import social.bigbone.api.exception.BigBoneRequestException; import swiss.fihlon.apus.configuration.Configuration; import swiss.fihlon.apus.social.Message; @@ -61,7 +60,7 @@ public List getMessages() { .sorted() .toList() .reversed(); - } catch (final BigBoneRequestException e) { + } catch (final Exception e) { LOGGER.error("Unable to load statuses with hashtag '{}' from Mastodon instance '{}': {}", hashtag, instance, e.getMessage()); return List.of();