diff options
| author | Hunt <lizhunt@amazon.com> | 2025-06-03 11:58:25 -0700 |
|---|---|---|
| committer | Hunt <lizhunt@amazon.com> | 2025-06-03 11:58:25 -0700 |
| commit | ee9ad10b5cc9850c3e2ed1946f70e0cef429fb48 (patch) | |
| tree | b6b0411b02127951cc28292425a35a1830c2758d /dots_manager/shell.py | |
| parent | 64d060d2730cd212b2932879036eb33f7336ef38 (diff) | |
| download | dots-ee9ad10b5cc9850c3e2ed1946f70e0cef429fb48.tar.gz dots-ee9ad10b5cc9850c3e2ed1946f70e0cef429fb48.zip | |
Refactor
Diffstat (limited to 'dots_manager/shell.py')
| -rw-r--r-- | dots_manager/shell.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dots_manager/shell.py b/dots_manager/shell.py index afd705a..09e84b2 100644 --- a/dots_manager/shell.py +++ b/dots_manager/shell.py @@ -9,6 +9,9 @@ def run_shell_command(cmd: List[str], logger: logging.Logger) -> Optional[str]: return subprocess.run( cmd, capture_output=True, text=True, check=True ).stdout.strip() + except FileNotFoundError as e: + logger.error(f"excecutable not found: {cmd[0]}, {e}") + return None except subprocess.CalledProcessError as e: logger.error(f"command failed: {cmd}, {e.stderr}") return None |
