From a119e81fe10d6bed774abb32c5d37029d949652b Mon Sep 17 00:00:00 2001 From: Cristhian Garcia Date: Tue, 15 Oct 2024 13:03:15 -0500 Subject: [PATCH] chore: remove unnecessary condition --- event_routing_backends/utils/xapi_lrs_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/event_routing_backends/utils/xapi_lrs_client.py b/event_routing_backends/utils/xapi_lrs_client.py index c00c874c..8761dece 100644 --- a/event_routing_backends/utils/xapi_lrs_client.py +++ b/event_routing_backends/utils/xapi_lrs_client.py @@ -80,7 +80,7 @@ def bulk_send(self, statement_data): return if not response.success: - if response.response.code == 409 or response.response.code == 204: + if response.response.code == 409: logger.warning(f"Duplicate event id found in: {response.request.content}") else: logger.warning(f"Failed request: {response.request.content}")