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:
parent
1aaebc0ce2
commit
8192d5a268
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user