From e61115c6fcaf718e9f9aa3f3d6abecbb740f8887 Mon Sep 17 00:00:00 2001 From: Elad Amit Date: Wed, 30 May 2012 11:33:14 +0300 Subject: [PATCH] added rescue Mixlib::ShellOut::ShellCommandFailed to the pip freeze command since that is what is being raised --- providers/pip.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/providers/pip.rb b/providers/pip.rb index 0a559de..96a814e 100644 --- a/providers/pip.rb +++ b/providers/pip.rb @@ -127,6 +127,7 @@ def current_installed_version p = shell_out!(version_check_cmd) p.stdout.split(delimeter)[1].strip rescue Chef::Exceptions::ShellCommandFailed + rescue rescue Mixlib::ShellOut::ShellCommandFailed end end