Skip to content

Commit

Permalink
highlighting: fix potential TypeError
Browse files Browse the repository at this point in the history
  • Loading branch information
birkenfeld committed Jan 6, 2015
1 parent 81313e9 commit b9fe829
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinx/highlighting.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def highlight_block(self, source, lang, opts=None, warn=None, force=False, **kwa
lexer = lexers[lang]
else:
try:
lexer = lexers[lang] = get_lexer_by_name(lang, **opts)
lexer = lexers[lang] = get_lexer_by_name(lang, **opts or {})
except ClassNotFound:
if warn:
warn('Pygments lexer name %r is not known' % lang)
Expand Down

0 comments on commit b9fe829

Please sign in to comment.