From 8e2612358dce4b44276dc99b02ca2c18c0d5cc8b Mon Sep 17 00:00:00 2001 From: Muhammad Zubair Date: Tue, 20 Jun 2023 21:01:38 +0500 Subject: [PATCH] feat: resolved linting issues --- common/djangoapps/entitlements/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/djangoapps/entitlements/tasks.py b/common/djangoapps/entitlements/tasks.py index ce908abcda..b193e06e00 100644 --- a/common/djangoapps/entitlements/tasks.py +++ b/common/djangoapps/entitlements/tasks.py @@ -28,6 +28,7 @@ MIT_SUPPLY_CHAIN_COURSES = [ '6513ed9c112a495182ad7036cbe52831', ] + @shared_task(bind=True, ignore_result=True) @set_code_owner_attribute def expire_old_entitlements(self, start, end, logid='...'): @@ -111,7 +112,6 @@ def expire_and_create_entitlements(self, no_of_entitlements): entitlement.save() LOGGER.info('created new entitlement with id %d ', entitlement.id) - except Exception as exc: LOGGER.exception('Failed to expire entitlements ',) # The call above is idempotent, so retry at will