Skip to content

Commit

Permalink
Update node.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Smartappli authored May 31, 2024
1 parent 4f23b8e commit 2a8a304
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/syft/src/syft/node/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,11 @@ def in_kubernetes() -> bool:
return get_container_host() == "k8s"


def get_venv_packages() -> str: # nosec
def get_venv_packages() -> str:
try:
# subprocess call is safe because it uses a fully qualified path and fixed arguments
result = subprocess.run(
[sys.executable, "-m", "pip", "list", "--format=freeze"],
[sys.executable, "-m", "pip", "list", "--format=freeze"], # nosec
capture_output=True,
check=True,
text=True,
Expand Down

0 comments on commit 2a8a304

Please sign in to comment.