Check for string

This commit is contained in:
bashrc committed 2020-10-09 21:34:45 +01:00
1 parent ceb9486c5d
commit 4a1bc53e59
1 file changed
+2
+2
View File
@@ -5253,6 +5253,8 @@ def htmlHighlightLabel(label: str, highlight: bool) -> str:
"""
if not highlight:
return label
if not isinstance(label, str):
return label
return '*' + label + '*'