ThreeDog
ThreeDog
我在Linux实现了一款控制台微信,为了交互功能,我把itchat.run放到了子线程中启动。主线程控制交互逻辑。但是现在发现itchat调用到的urllib3和request会偶尔报错链接超时,这个错误并不影响运行和使用,但是错误会全部输出到终端严重影响使用体验。 我想问是否有办法可以屏蔽掉这些Exception的输出。我尝试了直接在run的地方try Exception但是似乎捕获不到,子线程的错误输出仍然会输出到终端。 itchat版本:1.3.10 项目地址: https://github.com/TheThreeDog/TouchFish/tree/master/WechatOfConsole 错误输出: ``` Traceback (most recent call last): File "/home/threedog/.local/lib/python3.5/site-packages/urllib3/connection.py", line 157, in _new_conn (self._dns_host, self.port), self.timeout, **extra_kw File "/home/threedog/.local/lib/python3.5/site-packages/urllib3/util/connection.py", line 84, in create_connection raise...
I see that VT100 control code is used here, which can only be used under Linux shell. Have you considered how to support windows?