From 7473c261b696cedd20c0996106172206733169a0 Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Thu, 19 Jul 2018 09:01:05 +0000 Subject: [PATCH] do not call render_html for empty answers --- lib/cheat_wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cheat_wrapper.py b/lib/cheat_wrapper.py index 3ec2eda..60e5a81 100644 --- a/lib/cheat_wrapper.py +++ b/lib/cheat_wrapper.py @@ -257,7 +257,7 @@ def _visualize(query, keyword, answers, request_options, html=None): # pylint: d else: repository_button = _github_button(topic_type) - if html: + if html and query: result = _render_html( query, result, editable, repository_button, request_options)