Skip to content

Commit

Permalink
Merge pull request gleitz#103 from ncrocfer/master
Browse files Browse the repository at this point in the history
Fix gleitz#102 when colorize is enabled
  • Loading branch information
gleitz committed Mar 15, 2015
2 parents 12e5116 + 630fd0b commit 7b4e52d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion howdoi/howdoi.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,10 @@ def format_output(code, args):

# no lexer found above, use the guesser
if not lexer:
lexer = guess_lexer(code)
try:
lexer = guess_lexer(code)
except ClassNotFound:
return code

return highlight(code,
lexer,
Expand Down

0 comments on commit 7b4e52d

Please sign in to comment.