Skip to content

Commit

Permalink
CM-40907 format
Browse files Browse the repository at this point in the history
  • Loading branch information
naftalicy committed Oct 21, 2024
1 parent 555706e commit cbdc7f5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cycode/cli/utils/shell_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ def shell(command: Union[str, List[str]], timeout: int = _SUBPROCESS_DEFAULT_TIM
logger.debug('Executing shell command: %s', command)

try:
result = subprocess.run(command, timeout=timeout, check=True, capture_output=True)
result = subprocess.run( # noqa: S603
command,
timeout=timeout,
check=True,
capture_output=True
)

return result.stdout.decode('UTF-8').strip()
except subprocess.CalledProcessError as e:
Expand Down

0 comments on commit cbdc7f5

Please sign in to comment.