diff --git a/advlabdb/scripts/terminal_utils.py b/advlabdb/scripts/terminal_utils.py index a66982b..f2d93b6 100644 --- a/advlabdb/scripts/terminal_utils.py +++ b/advlabdb/scripts/terminal_utils.py @@ -1,11 +1,11 @@ # No relative imports allowed in this file to be able to run server_setup.py without packages -import subprocess +import subprocess # nosec 404 from getpass import getpass def run(command, **kwargs): - return subprocess.run(command, shell=True, **kwargs) + return subprocess.run(command, shell=True, **kwargs) # nosec B602 def box(message, context=None): @@ -80,7 +80,7 @@ def validating_input( ans = input(prompt) try: ans = format_function(ans) - except Exception: + except Exception: # nosec B112 continue else: done_validation = True diff --git a/advlabdb/scripts/test/test_container.py b/advlabdb/scripts/test/test_container.py index afbc6c7..c700232 100644 --- a/advlabdb/scripts/test/test_container.py +++ b/advlabdb/scripts/test/test_container.py @@ -30,11 +30,11 @@ If you want to clean up after testing with the container, run the following: `podman rmi systemd_debian` """ -import subprocess +import subprocess # nosec 404 def run(command, **kwargs): - return subprocess.run(command, shell=True, **kwargs) + return subprocess.run(command, shell=True, **kwargs) # nosec B602 def update_system(container_name):