We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fdf4c5 commit 441bb2bCopy full SHA for 441bb2b
lib/pycall/libpython/finder.rb
@@ -27,12 +27,12 @@ class << self
27
def find_python_config(python = nil)
28
python ||= DEFAULT_PYTHON
29
Array(python).each do |python_cmd|
30
- python_config = investigate_python_config(python_cmd)
31
- return [python_cmd, python_config] unless python_config.empty?
+ begin
+ python_config = investigate_python_config(python_cmd)
32
+ return [python_cmd, python_config] unless python_config.empty?
33
+ rescue
34
+ end
35
end
- rescue
- raise ::PyCall::PythonNotFound
- else
36
raise ::PyCall::PythonNotFound
37
38
0 commit comments