diff --git a/common/djangoapps/entitlements/tasks.py b/common/djangoapps/entitlements/tasks.py index 2f534b7a07..c8e2a9c628 100644 --- a/common/djangoapps/entitlements/tasks.py +++ b/common/djangoapps/entitlements/tasks.py @@ -115,7 +115,7 @@ def expire_and_create_entitlements(self, entitlements, support_user): CourseEntitlementSupportDetail.objects.create(**support_detail) LOGGER.info('created new entitlement with id %d in a correspondence of above expired entitlement', new_entitlement.id) # lint-amnesty, pylint: disable=line-too-long - except Exception as exc: - LOGGER.exception('Failed to expire entitlements that reached their expiration period') # pylint: disable=broad-except + except Exception as exc: # pylint: disable=broad-except + LOGGER.exception('Failed to expire entitlements that reached their expiration period') LOGGER.info('Successfully completed the task expire_and_create_entitlements after examining %d entries', entitlements.count()) # lint-amnesty, pylint: disable=line-too-long