diff --git a/Core/Interface/Entity.py b/Core/Interface/Entity.py index e597c12..1e0d98b 100644 --- a/Core/Interface/Entity.py +++ b/Core/Interface/Entity.py @@ -58,6 +58,8 @@ class BaseNode(QGraphicsItemGroup): self.parentGroup = None def updateLabel(self, newText: str = '') -> None: + if not isinstance(newText, str): + newText = str(newText) if newText != '': if len(newText) > 50: newText = newText[:47] + "..."