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

Skip to content

Commit bbff51b

Browse files
committed
Apparently, else doesn't do anything without a rescue block. So just use a rescue.
1 parent 2386a59 commit bbff51b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

providers/pip.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def current_installed_version
126126
end
127127
p = shell_out!(version_check_cmd)
128128
p.stdout.split(delimeter)[1].strip
129-
else
129+
rescue
130130
end
131131
end
132132

0 commit comments

Comments
 (0)