wxBot icon indicating copy to clipboard operation
wxBot copied to clipboard

接入图灵机器人,为什么没有回复信息会报错,如下

Open eve0803 opened this issue 7 years ago • 0 comments

Except in proc_msg Traceback (most recent call last): File "/Users/eve/codeing/learn/python/wxin/wxBot/wxbot.py", line 786, in proc_msg self.handle_msg(r) File "/Users/eve/codeing/learn/python/wxin/wxBot/wxbot.py", line 759, in handle_msg self.handle_msg_all(message) File "bot.py", line 72, in handle_msg_all self.send_msg_by_uid(self.tuling_auto_reply(msg['user']['id'], msg['content']['data']), msg['user']['id']) File "bot.py", line 31, in tuling_auto_reply respond = json.loads(r.text) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/init.py", line 338, in loads return _default_decoder.decode(s) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 366, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 384, in raw_decode raise ValueError("No JSON object could be decoded")

eve0803 avatar Jul 12 '17 06:07 eve0803