fix: mastodon.py didnt commit after deleting an invalid token

This commit is contained in:
codl 2017-09-02 20:30:37 +02:00
parent 7e677f4f97
commit 23794acebe
No known key found for this signature in database
GPG Key ID: 6CD7C8891ED1233A
1 changed files with 1 additions and 0 deletions

View File

@ -87,6 +87,7 @@ def get_api_for_acc(account):
sentry.captureMessage(
'Mastodon auth revoked or incorrect', extra=locals())
db.session.delete(token)
db.session.commit()
continue
return api