From bde08c6c492c1404ced80c926f2481174e3c24ff Mon Sep 17 00:00:00 2001 From: codl Date: Wed, 6 Sep 2017 13:08:06 +0200 Subject: [PATCH] pylint --- tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks.py b/tasks.py index 84da7d5..000d187 100644 --- a/tasks.py +++ b/tasks.py @@ -76,7 +76,7 @@ def fetch_acc(id_, cursor=None): cursor = action(acc, cursor) if cursor: fetch_acc.si(id_, cursor).apply_async() - except PermanentError as e: + except PermanentError: db.session.rollback() make_dormant(acc) if sentry: @@ -194,7 +194,7 @@ def refresh_account(account_id): posts = refresh_posts(posts) account.touch_refresh() db.session.commit() - except PermanentError as e: + except PermanentError: db.session.rollback() make_dormant(account) if sentry: