Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 937c357

Browse files
jjhuffjtimberman
authored and
jtimberman
committed
Also catch Chef::Exceptions::ShellCommandFailed so that chef 0.10.8 still works
1 parent b5d0065 commit 937c357

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

providers/pip.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ def current_installed_version
126126
end
127127
p = shell_out!(version_check_cmd)
128128
p.stdout.split(delimeter)[1].strip
129-
rescue Chef::Exceptions::ShellCommandFailed, Mixlib::ShellOut::ShellCommandFailed
129+
rescue Chef::Exceptions::ShellCommandFailed
130+
rescue Mixlib::ShellOut::ShellCommandFailed
130131
end
131132
end
132133

0 commit comments

Comments
 (0)