From 937c357d973885279ec65165e925f8e6be18901c Mon Sep 17 00:00:00 2001 From: Justin Huff Date: Tue, 15 May 2012 16:57:25 -0700 Subject: [PATCH] Also catch Chef::Exceptions::ShellCommandFailed so that chef 0.10.8 still works --- providers/pip.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/providers/pip.rb b/providers/pip.rb index 5427cac..1c58e5e 100644 --- a/providers/pip.rb +++ b/providers/pip.rb @@ -126,7 +126,8 @@ def current_installed_version end p = shell_out!(version_check_cmd) p.stdout.split(delimeter)[1].strip - rescue Chef::Exceptions::ShellCommandFailed, Mixlib::ShellOut::ShellCommandFailed + rescue Chef::Exceptions::ShellCommandFailed + rescue Mixlib::ShellOut::ShellCommandFailed end end