Skip to content

Commit af4a690

Browse files
committed
Surpress Reviewed security issues
1 parent d04d975 commit af4a690

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎BlocksScreen/lib/machine.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
import logging
55
import shlex
6-
import subprocess
6+
import subprocess # nosec: B404
77
import typing
88

99
from PyQt6 import QtCore
@@ -62,7 +62,7 @@ def _run_command(self, command: str):
6262
try:
6363
# Split command into a list of strings
6464
cmd = shlex.split(command)
65-
p = subprocess.run(
65+
p = subprocess.run( # nosec: B603
6666
cmd, check=True, capture_output=True, text=True, timeout=5
6767
)
6868
return p.stdout.strip() + "\n" + p.stderr.strip()

‎BlocksScreen/lib/panels/networkWindow.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import logging
22
import typing
3-
import subprocess
3+
import subprocess # nosec: B404
44
from functools import partial
55

66
from lib.network import SdbusNetworkManagerAsync
@@ -632,7 +632,7 @@ def get_hotspot_ip_via_shell(self):
632632
"-f1",
633633
]
634634
try:
635-
result = subprocess.run( # nosec
635+
result = subprocess.run( # nosec: B603
636636
command,
637637
capture_output=True,
638638
text=True,

0 commit comments

Comments
 (0)