mirror of
https://github.com/chubin/cheat.sh.git
synced 2026-06-20 13:16:44 +02:00
lib/frontend/ansi.py: minor fix
This commit is contained in:
@@ -90,7 +90,7 @@ def _colorize_ansi_answer(topic, answer, color_style, # pylint: disable=to
|
||||
def _visualize(answers, request_options, search_mode=False):
|
||||
|
||||
highlight = not bool(request_options and request_options.get('no-terminal'))
|
||||
color_style = request_options.get('style', '')
|
||||
color_style = (request_options or {}).get('style', '')
|
||||
if color_style not in COLOR_STYLES:
|
||||
color_style = ''
|
||||
|
||||
|
||||
Reference in New Issue
Block a user