From 8fe2f2a09eb05bbdfd5b8da8cb0c0c8be9555243 Mon Sep 17 00:00:00 2001 From: gjwang Date: Mon, 7 Mar 2016 22:57:18 +0800 Subject: [PATCH] Fixed typo --- wxbot.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wxbot.py b/wxbot.py index d2d94c7..ee29025 100644 --- a/wxbot.py +++ b/wxbot.py @@ -9,7 +9,7 @@ import urllib import time import re import random -from requests.exceptions import * +from requests.exceptions import ConnectionError, ReadTimeout import os,subprocess,sys UNKONWN = 'unkonwn' @@ -541,7 +541,7 @@ class WXBot: def run(self): self.get_uuid() self.gen_qr_code('qr.png') - print '[INFO] Please use WeCaht to scan the QR code .' + print '[INFO] Please use WeChat to scan the QR code .' result = self.wait4login() if result != SUCCESS: @@ -551,7 +551,7 @@ class WXBot: if self.login(): print '[INFO] Web WeChat login succeed .' else: - print '[ERROR] Web WeChat login failed.' + print '[ERROR] Web WeChat login faile .' return if self.init(): @@ -802,4 +802,4 @@ class WXBot: fn = 'voice_' + msgid + '.mp3' with open(fn, 'wb') as f: f.write(data) - return fn \ No newline at end of file + return fn