pylint
This commit is contained in:
parent
ee72c50ab9
commit
bde08c6c49
4
tasks.py
4
tasks.py
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue