Skip to content

Commit

Permalink
add exception print
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyang committed May 16, 2016
1 parent 6e7cb58 commit b72e48f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wxbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import time
import re
import random

from traceback import format_exc
from requests.exceptions import ConnectionError, ReadTimeout
import HTMLParser

Expand Down Expand Up @@ -635,6 +635,7 @@ def proc_msg(self):
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)
Expand Down

0 comments on commit b72e48f

Please sign in to comment.