diff --git a/credentials/apps/badges/processing/generic.py b/credentials/apps/badges/processing/generic.py index 344c95068..105831d42 100644 --- a/credentials/apps/badges/processing/generic.py +++ b/credentials/apps/badges/processing/generic.py @@ -39,6 +39,7 @@ def process_event(sender, **kwargs): except BadgesProcessingError as error: logger.error(f"Badges processing error: {error}") return None + return None def identify_user(*, event_type, event_payload): diff --git a/credentials/apps/badges/tests/test_issuers.py b/credentials/apps/badges/tests/test_issuers.py index c06e83d88..787f2ba27 100644 --- a/credentials/apps/badges/tests/test_issuers.py +++ b/credentials/apps/badges/tests/test_issuers.py @@ -155,7 +155,7 @@ def test_revoke_credly_badge_success(self, mock_revoke_badge): self.assertEqual(user_credential.state, "revoked") @patch.object(CredlyAPIClient, "revoke_badge", side_effect=CredlyAPIError("Revocation failed")) - def test_revoke_credly_badge_failure(self, mock_revoke_badge): # type: ignore[unused-argument] + def test_revoke_credly_badge_failure(self, mock_revoke_badge): # pylint: disable=unused-argument user_credential = self.issued_user_credential_type.objects.create( username="test_user", credential_content_type=ContentType.objects.get_for_model(self.badge_template),