From 78adec56c9ce5c4566e66d878fb316cd2779cf08 Mon Sep 17 00:00:00 2001 From: ObaraEmmanuel Date: Thu, 7 Nov 2024 20:29:09 +0300 Subject: [PATCH] [STUDIO] Handle empty string widget properties --- studio/lib/pseudo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/studio/lib/pseudo.py b/studio/lib/pseudo.py index c1355b2..7b7ba52 100644 --- a/studio/lib/pseudo.py +++ b/studio/lib/pseudo.py @@ -88,7 +88,7 @@ def set(widget, value, prop): @staticmethod def get(widget, prop): val = getattr(widget, f"_wdgt_prop_{prop}", "") - if isinstance(val, str): + if val and isinstance(val, str): try: val = widget.nametowidget(val) except: