Skip to content

Commit

Permalink
Bandit fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
popovaan committed Apr 5, 2024
1 parent c1c0f71 commit eb18777
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/backend/backend_ga.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion src/backend/backend_ga4.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
4 changes: 2 additions & 2 deletions src/utils/sender.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand All @@ -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

0 comments on commit eb18777

Please sign in to comment.