Browse Source

Merge pull request #65 from liuyang007/master

add __init__让外部引用模块
Weston Liu 8 years ago
parent
commit
4542daf027
2 changed files with 2 additions and 1 deletions
  1. 0 0
      __init__.py
  2. 2 1
      wxbot.py

+ 0 - 0
__init__.py


+ 2 - 1
wxbot.py

@@ -12,7 +12,7 @@ import urllib
 import time
 import re
 import random
-
+from traceback import format_exc
 from requests.exceptions import ConnectionError, ReadTimeout
 import HTMLParser
 
@@ -630,6 +630,7 @@ class WXBot:
                 self.schedule()
             except:
                 print '[ERROR] Except in proc_msg'
+                print format_exc()
             check_time = time.time() - check_time
             if check_time < 0.8:
                 time.sleep(1 - check_time)