2
0
mirror of https://github.com/codl/forget synced 2025-01-23 04:12:28 +01:00

fix: re-raise exception on twitter tempoarary errors

This commit is contained in:
codl 2017-08-09 05:15:13 +02:00
parent 1aaebc0ce2
commit 8192d5a268
No known key found for this signature in database
GPG Key ID: 6CD7C8891ED1233A

View File

@ -67,6 +67,9 @@ def get_twitter_for_acc(account):
# token revoked
db.session.delete(token)
db.session.commit()
else:
# temporary error, re-raise
raise e
# if no tokens are valid, we log out the user so we'll get a fresh
# token when they log in again