From eb1877743d50da032435ebd26691962d929bb763 Mon Sep 17 00:00:00 2001 From: Anastasiia Pnevskaia Date: Fri, 5 Apr 2024 15:33:16 +0200 Subject: [PATCH] Bandit fix. --- src/backend/backend_ga.py | 2 +- src/backend/backend_ga4.py | 2 +- src/utils/sender.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/backend/backend_ga.py b/src/backend/backend_ga.py index a4fb3f4..1721986 100644 --- a/src/backend/backend_ga.py +++ b/src/backend/backend_ga.py @@ -42,7 +42,7 @@ def send(self, message: Message): request.urlopen(req) #nosec except Exception as err: - pass + pass # nosec def build_event_message(self, event_category: str, event_action: str, event_label: str, event_value: int = 1, **kwargs): diff --git a/src/backend/backend_ga4.py b/src/backend/backend_ga4.py index b8a5f60..3fc81d0 100644 --- a/src/backend/backend_ga4.py +++ b/src/backend/backend_ga4.py @@ -43,7 +43,7 @@ def send(self, message: dict): request.urlopen(req) #nosec except Exception as err: - pass + pass # nosec def build_event_message(self, event_category: str, event_action: str, event_label: str, event_value: int = 1, **kwargs): diff --git a/src/utils/sender.py b/src/utils/sender.py index f6c8325..020329d 100644 --- a/src/utils/sender.py +++ b/src/utils/sender.py @@ -37,7 +37,7 @@ def _future_callback(future): fut = self.executor.submit(backend.send, message) fut.add_done_callback(_future_callback) except Exception as err: - pass + pass # nosec def force_shutdown(self, timeout: float): """ @@ -61,4 +61,4 @@ def force_shutdown(self, timeout: float): self.executor._threads.clear() futures.thread._threads_queues.clear() except Exception as err: - pass + pass # nosec