diff options
Diffstat (limited to 'helm')
-rw-r--r-- | helm/plugin/tasks.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/helm/plugin/tasks.py b/helm/plugin/tasks.py index 4ffcd81..3374e94 100644 --- a/helm/plugin/tasks.py +++ b/helm/plugin/tasks.py @@ -48,9 +48,12 @@ def execute_command(_command): } ctx.logger.debug('subprocess_args {0}.'.format(subprocess_args)) - - process = subprocess.Popen(**subprocess_args) - output, error = process.communicate() + try: + process = subprocess.Popen(**subprocess_args) + output, error = process.communicate() + except Exception as e: + ctx.logger.debug(str(e)) + return False ctx.logger.debug('command: {0} '.format(_command)) ctx.logger.debug('output: {0} '.format(output)) |