From 94b82afe5e3998ab0f1fc8ed01acecd512e86b53 Mon Sep 17 00:00:00 2001 From: youfou Date: Wed, 26 Apr 2017 22:10:18 +0800 Subject: [PATCH] fix .send_image() issue --- wxpy/__init__.py | 2 +- wxpy/api/chats/chat.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wxpy/__init__.py b/wxpy/__init__.py index e0d7704..de8d34c 100644 --- a/wxpy/__init__.py +++ b/wxpy/__init__.py @@ -55,7 +55,7 @@ def reply_my_friend(msg): from .utils import BaseRequest, dont_raise_response_error, embed, ensure_one, mutual_friends __title__ = 'wxpy' -__version__ = '0.3.8' +__version__ = '0.3.9' __author__ = 'Youfou' __license__ = 'MIT' __copyright__ = '2017, Youfou' diff --git a/wxpy/api/chats/chat.py b/wxpy/api/chats/chat.py index b504b42..1d315ed 100644 --- a/wxpy/api/chats/chat.py +++ b/wxpy/api/chats/chat.py @@ -39,7 +39,7 @@ def do(): return func_(**kwargs_) logger.info('sending {} to {}:\n{}'.format( - func.__name__[5:], self, attrs_['text'] or attrs_['path'])) + func.__name__[5:], self, attrs_.get('text') or attrs_.get('path'))) ret_ = do() else: # send_raw_msg 会直接返回结果