Add safety guard for pylint.

This commit is contained in:
LCD 47 2013-09-20 01:16:36 +03:00
parent a5c198f89b
commit 8805b83654

View File

@ -49,8 +49,12 @@ function! SyntaxCheckers_python_pylint_GetLocList()
endfunction
function s:PylintNew()
try
let pylint_version = filter(split(system('pylint --version'), '\m, \|\n'), 'v:val =~# "^pylint"')[0]
return syntastic#util#versionIsAtLeast(syntastic#util#parseVersion(pylint_version), [1])
catch /E684/
return 0
endtry
endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({