wangkun 2 年之前
父節點
當前提交
466e3edd4b
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      weixinzhishu/weixinzhishu_main/search_key.py

+ 1 - 0
weixinzhishu/weixinzhishu_main/search_key.py

@@ -48,6 +48,7 @@ class Searchkey:
             # cls.close_weixinzhishu(log_type, crawler)
             weixinzhishu_driver = cls.close_weixinzhishu(log_type, crawler)
             weixinzhishu_driver.find_elements(By.NAME, '关闭')[-1].click()
+            cls.kill_pid(log_type, crawler)
         except Exception as e:
             Common.logger(log_type, crawler).error(f'start_wechat异常:{e}\n')