Skip to content

Commit 1feea58

Browse files
committed
fix: vulnerabilities
1 parent cb2b78e commit 1feea58

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

src/ansys/mapdl/core/launcher/grpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,4 +212,4 @@ def launch_grpc(
212212
stdout=stdout,
213213
stderr=stderr,
214214
env_vars=env_vars,
215-
)
215+
) # nosec B604

src/ansys/mapdl/core/launcher/tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def submitter(
201201
stdout=stdout,
202202
stderr=stderr,
203203
env=env_vars,
204-
)
204+
) # nosec B604
205205

206206

207207
def close_all_local_instances(port_range: range = None) -> None:

src/ansys/mapdl/core/mapdl_grpc.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3805,8 +3805,7 @@ def kill_job(self, jobid: int) -> None:
38053805
Job ID.
38063806
"""
38073807
cmd = ["scancel", f"{jobid}"]
3808-
# to ensure the job is stopped properly, let's issue the scancel twice.
3809-
subprocess.Popen(cmd)
3808+
subprocess.Popen(cmd) # nosec B603
38103809

38113810
def __del__(self):
38123811
"""In case the object is deleted"""
@@ -3826,6 +3825,6 @@ def __del__(self):
38263825
if not self._start_instance:
38273826
return
38283827

3829-
except Exception as e:
3828+
except Exception as e: # nosec B110
38303829
# This is on clean up.
3831-
pass
3830+
pass # nosec B110

0 commit comments

Comments
 (0)