修复NoneType object is not iterable的问题

This commit is contained in:
shuaikangzhou
2024-01-29 21:56:15 +08:00
parent e64af57ca3
commit e1361a6b23
5 changed files with 29 additions and 21 deletions

View File

@@ -40,7 +40,7 @@ class MicroMsg:
def get_contact(self):
if not self.open_flag:
return None
return []
try:
lock.acquire(True)
sql = '''SELECT UserName, Alias, Type, Remark, NickName, PYInitial, RemarkPYInitial, ContactHeadImgUrl.smallHeadImgUrl, ContactHeadImgUrl.bigHeadImgUrl,ExTraBuf,COALESCE(ContactLabel.LabelName, 'None') AS labelName