... | ... |
@@ -2083,7 +2083,7 @@ function _get_python_version { |
2083 | 2083 |
local interp=$1 |
2084 | 2084 |
local version |
2085 | 2085 |
# disable erroring out here, otherwise if python 3 doesn't exist we fail hard. |
2086 |
- if [[ -x $(which $interp) ]]; then |
|
2086 |
+ if [[ -x $(which $interp 2> /dev/null) ]]; then |
|
2087 | 2087 |
version=$($interp -c 'import sys; print("%s.%s" % sys.version_info[0:2])') |
2088 | 2088 |
fi |
2089 | 2089 |
echo ${version} |