Skip to content

Commit 6cd612f

Browse files
committed
增加错误日志记录
1 parent 6abfb3f commit 6cd612f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

wechatrobot/WeChatRobot.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ def handle(self):
9797
break
9898
except json.JSONDecodeError:
9999
pass
100+
except UnicodeDecodeError as e:
101+
logging.error(e)
102+
logging.error(msg)
100103
conn.close()
101104

102105
ip_port = ( self.ip , self.port )

wechatrobot/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.0.3_dev"
1+
__version__ = "0.0.3_dev1"

0 commit comments

Comments
 (0)