mastodon's 'post not found' message changed at some point apparently? idk fuck

This commit is contained in:
codl 2017-09-16 20:24:14 +02:00
parent 7c8c49a2ae
commit 8246e276f4
No known key found for this signature in database
GPG Key ID: 6CD7C8891ED1233A
1 changed files with 1 additions and 1 deletions

View File

@ -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)