1
0
mirror of https://github.com/ihabunek/toot.git synced 2025-02-02 15:07:51 -05:00

Fix catching the wrong exception

fixes #504
This commit is contained in:
Ivan Habunek 2024-11-14 19:14:46 +01:00
parent 4548e25cff
commit 2d61a2f30f
No known key found for this signature in database
GPG Key ID: 01DB3DD0D824504C

View File

@ -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 []