From 6f4a091fdf2dcbefb342e0f20459554ac4cea40b Mon Sep 17 00:00:00 2001 From: Wolfsilver Date: Sun, 30 Jun 2019 14:52:20 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=85=AC=E4=BC=97=E5=8F=B7=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E8=8E=B7=E5=8F=96=E5=A4=B4=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- itchat/components/contact.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/itchat/components/contact.py b/itchat/components/contact.py index 3ae3c02a..3b7952bb 100644 --- a/itchat/components/contact.py +++ b/itchat/components/contact.py @@ -389,7 +389,7 @@ def get_head_img(self, userName=None, chatroomUserName=None, picDir=None): 'type': 'big', } url = '%s/webwxgeticon' % self.loginInfo['url'] if chatroomUserName is None: - infoDict = self.storageClass.search_friends(userName=userName) + infoDict = self.storageClass.search_friends(userName=userName) or self.storageClass.search_mps(userName=userName) if infoDict is None: return ReturnValue({'BaseResponse': { 'ErrMsg': 'No friend found',