This commit is contained in:
codl 2017-09-06 13:08:06 +02:00
parent ee72c50ab9
commit bde08c6c49
No known key found for this signature in database
GPG Key ID: 6CD7C8891ED1233A
1 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ def fetch_acc(id_, cursor=None):
cursor = action(acc, cursor) cursor = action(acc, cursor)
if cursor: if cursor:
fetch_acc.si(id_, cursor).apply_async() fetch_acc.si(id_, cursor).apply_async()
except PermanentError as e: except PermanentError:
db.session.rollback() db.session.rollback()
make_dormant(acc) make_dormant(acc)
if sentry: if sentry:
@ -194,7 +194,7 @@ def refresh_account(account_id):
posts = refresh_posts(posts) posts = refresh_posts(posts)
account.touch_refresh() account.touch_refresh()
db.session.commit() db.session.commit()
except PermanentError as e: except PermanentError:
db.session.rollback() db.session.rollback()
make_dormant(account) make_dormant(account)
if sentry: if sentry: