opscode-cookbooks/python — pull request #6 by lcampbell (2012-05-12 11:21:20+00:00)
Title: Catch exception when pip not already installed 

When pip is not already installed, `current_installed_version`
throws an uncaught `Mixlib::ShellOut::ShellCommandFailed`. It tries
to catch a `Chef::Exceptions::ShellCommandFailed`, but that doesn't
work. This patch makes it unconditionally return `nil` if an exception
occurs, so that pip can be installed properly.

There's probably a better way to fix this, but alas, I am not
well-versed in Ruby.