Results 2 issues of MrSheep

OS:CentOS6.9 git version 2.9.3 I have installed the program with wget -O - https://raw.githubusercontent.com/alberthier/git-webui/master/install/installer.sh | bash then cd to my local gitclone, execute git webui and it reported this ![image](https://user-images.githubusercontent.com/8553667/28960533-a7dac81c-7931-11e7-95c0-0ea9c0348634.png)...

![image](https://user-images.githubusercontent.com/8553667/218053280-e58d0fc5-fd7d-44f0-8cb3-35b96ec91029.png) > 问题 cookie失效时间大约为15个小时,失效之后程序不会重新自动获取cookie,会一直在日志中报错ValueError: substring not found,报错内容如截图。 然后程序就卡在这了,不会检测开播,更不会录制。 为什么报这个错,因为cookie失效后,recoder.py中的get_live_state_json(room_id)函数里requests.get(api, headers=get_request_headers())返回结果为空,‘’。 > 解决办法 捕获子线程的异常,不要只打印log,在cookie失效之后重新执行一次cookie_utils.auto_get_cookie(),获取新的cookie就可以了。 有两种改法 1. 直接在子线程中处理,monitor.py的check_thread_task()函数中的exception,判断异常为substring not found之后,执行cookie_utils.auto_get_cookie()。 2. 在check_thread_main()的 ``` for future in futures: future.result() ``` 加入future_exception = future.exception(),...