Skip to content

Commit

Permalink
🥅 Catch all exceptions
Browse files Browse the repository at this point in the history
Signed-off-by: Marcus Fihlon <[email protected]>
  • Loading branch information
McPringle committed Apr 6, 2024
1 parent b2f2fbd commit e89f687
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -61,7 +60,7 @@ public List<Message> 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();
Expand Down

0 comments on commit e89f687

Please sign in to comment.