fix: gives default empty dict to the config of model

This commit is contained in:
weiensong
2023-11-23 09:22:57 +08:00
parent 2f37ab9780
commit 49af6e2e13
2 changed files with 8 additions and 5 deletions

View File

@@ -60,7 +60,9 @@ class Robot(Job):
@staticmethod
def value_check(args: dict) -> bool:
return all(value is not None for key, value in args.items() if key != 'proxy')
if args:
return all(value is not None for key, value in args.items() if key != 'proxy')
return False
def toAt(self, msg: WxMsg) -> bool:
"""处理被 @ 消息