Skip to content

Commit 215325d

Browse files
committed
Omit bandit security warnings
1 parent 7089bf3 commit 215325d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

galahad/celery.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
def jitter():
1515
"""Return a random number between 0 and 1."""
16-
return random.randrange(2)
16+
return random.randrange(2) # nosec
1717

1818

1919
def backoff(retries):

galahad/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def get_graph_svg(cls):
213213
"""
214214
graph = cls.get_graph()
215215
graph.format = 'svg'
216-
return SafeString(graph.pipe().decode('utf-8'))
216+
return SafeString(graph.pipe().decode('utf-8')) # nosec
217217

218218
def get_instance_graph(self):
219219
"""Return process instance graph."""
@@ -264,7 +264,7 @@ def get_instance_graph_svg(self, output_format='svg'):
264264
"""
265265
graph = self.get_instance_graph()
266266
graph.format = output_format
267-
return SafeString(graph.pipe().decode('utf-8'))
267+
return SafeString(graph.pipe().decode('utf-8')) # nosec
268268

269269
def save(self, **kwargs):
270270
if self.pk:

0 commit comments

Comments
 (0)