From 2d61a2f30f9e4b0ea3f42ff43f0ebc47272c1c2f Mon Sep 17 00:00:00 2001 From: Ivan Habunek Date: Thu, 14 Nov 2024 19:14:46 +0100 Subject: [PATCH] Fix catching the wrong exception fixes #504 --- toot/tui/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toot/tui/app.py b/toot/tui/app.py index 7de4dfd..483d829 100644 --- a/toot/tui/app.py +++ b/toot/tui/app.py @@ -363,7 +363,7 @@ class TUI(urwid.Frame): acct = f'@{self.user.username}@{self.user.instance}' self.account = api.find_account(self.app, self.user, acct) return api.following(self.app, self.user, self.account["id"]) - except ApiError: + except Exception: # not supported by all Mastodon servers so fail silently if necessary return []