From 4a1bc53e59330b5ec7f1e1391c9bdbfe0706b4fe Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 9 Oct 2020 21:34:45 +0100 Subject: [PATCH] Check for string --- webinterface.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webinterface.py b/webinterface.py index ab08dc8a..f3d513f3 100644 --- a/webinterface.py +++ b/webinterface.py @@ -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 + '*'