1
0
mirror of https://github.com/chubin/cheat.sh.git synced 2026-06-20 13:16:44 +02:00

do not call render_html for empty answers

This commit is contained in:
Igor Chubin
2018-07-19 09:01:05 +00:00
parent 99399c1d8a
commit 7473c261b6
+1 -1
View File
@@ -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)