Check for string

main
Bob Mottram 2020-10-09 21:34:45 +01:00
parent ceb9486c5d
commit 4a1bc53e59
1 changed files with 2 additions and 0 deletions

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 + '*'