fix: mastodon.py didnt commit after deleting an invalid token
This commit is contained in:
parent
7e677f4f97
commit
23794acebe
|
@ -87,6 +87,7 @@ def get_api_for_acc(account):
|
||||||
sentry.captureMessage(
|
sentry.captureMessage(
|
||||||
'Mastodon auth revoked or incorrect', extra=locals())
|
'Mastodon auth revoked or incorrect', extra=locals())
|
||||||
db.session.delete(token)
|
db.session.delete(token)
|
||||||
|
db.session.commit()
|
||||||
continue
|
continue
|
||||||
return api
|
return api
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue