mastodon's 'post not found' message changed at some point apparently? idk fuck
This commit is contained in:
parent
7c8c49a2ae
commit
8246e276f4
|
@ -183,7 +183,7 @@ def refresh_posts(posts):
|
|||
except (MastodonAPIError,
|
||||
MastodonNetworkError,
|
||||
MastodonRatelimitError) as e:
|
||||
if str(e) == 'Endpoint not found.':
|
||||
if str(e) in ('Endpoint not found.', 'Record not found.'):
|
||||
db.session.delete(post)
|
||||
else:
|
||||
raise TemporaryError(e)
|
||||
|
|
Loading…
Reference in New Issue