This repository was archived by the owner on Oct 2, 2018. It is now read-only.
Repository navigation
Commit 2386a59
committed
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.1 parent bb17707 commit 2386a59
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| |||
0 commit comments