diff kitten: Fix spurious traceback on exit when pygments is missing

Fixes #863
This commit is contained in:
Kovid Goyal 2018-09-06 06:05:08 +05:30
parent 1949f3c3d5
commit 3bd45966c6
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -32,7 +32,7 @@ from .search import BadRegex, Search
try:
from .highlight import initialize_highlighter, highlight_collection
except ImportError:
initialize_highlighter = None
initialize_highlighter = highlight_collection = None
INITIALIZING, COLLECTED, DIFFED, COMMAND, MESSAGE = range(5)