From 919b316cf3d053d6312c10c8fe71a3b811e43d5f Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sat, 24 Jul 2021 20:58:19 +0800 Subject: [PATCH] bugfix --- kivyblocks/blocks.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kivyblocks/blocks.py b/kivyblocks/blocks.py index d774abc..ff0cb9c 100755 --- a/kivyblocks/blocks.py +++ b/kivyblocks/blocks.py @@ -569,7 +569,9 @@ class Blocks(EventDispatcher): r = f(**kwargs) if isinstance(r, dict): return r - print('get_rtdata():method return is not dict', desc, 'ret=', r) + if isinstance(r, DictObject): + return r.to_dict() + print('get_rtdata():method return is not dict', desc, 'ret=', r, type(r)) return {} except: print_exc()