Fixed typo

This commit is contained in:
gjwang
2016-03-07 22:57:18 +08:00
parent 03a29ffc4b
commit 8fe2f2a09e
+4 -4
View File
@@ -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
return fn