only use lexer if one was found, to fix #33
This commit is contained in:
parent
a164a0fd8e
commit
7e9aebaeb7
1 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ def guess_language(file_name):
|
|||
return language, None
|
||||
|
||||
lexer = smart_guess_lexer(file_name)
|
||||
|
||||
if lexer:
|
||||
language = u(lexer.name)
|
||||
|
||||
return language, lexer
|
||||
|
|
Loading…
Reference in a new issue