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

Skip to content
This repository was archived by the owner on Oct 2, 2018. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: poise/python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: lcampbell/python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on May 12, 2012

  1. 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.
    lcampbell committed May 12, 2012
    Configuration menu
    Copy the full SHA
    2386a59 View commit details
    Browse the repository at this point in the history
  2. Apparently, else doesn't do anything without a rescue block. So j…

    …ust use a `rescue`.
    lcampbell committed May 12, 2012
    Configuration menu
    Copy the full SHA
    bbff51b View commit details
    Browse the repository at this point in the history
Loading