Ensure a session is running before attempting to do Python detection.

This commit is contained in:
John Szakmeister
2015-11-04 05:01:22 -05:00
parent 4196d0b983
commit 690df9333a
2 changed files with 2 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ local eq, clear, insert = helpers.eq, helpers.clear, helpers.insert
local expect, write_file = helpers.expect, helpers.write_file
do
clear()
command('let [g:interp, g:errors] = provider#pythonx#Detect(2)')
local errors = eval('g:errors')
if errors ~= '' then