only use lexer if one was found

This commit is contained in:
Alan Hamlett 2015-08-10 20:10:09 -07:00
parent e8f2d75927
commit ccb0b11ffb

View file

@ -39,8 +39,8 @@ def guess_language(file_name):
return language, None
lexer = smart_guess_lexer(file_name)
language = u(lexer.name)
if lexer:
language = u(lexer.name)
return language, lexer