From d866e15e04b2e7f15ac3a2ae0f4f887fceaa8233 Mon Sep 17 00:00:00 2001 From: TeamsSix <7698230+teamssix@user.noreply.gitee.com> Date: Tue, 20 Apr 2021 20:09:34 +0800 Subject: [PATCH] update tig.py. --- tig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tig.py b/tig.py index e7481f7..689d66a 100644 --- a/tig.py +++ b/tig.py @@ -84,7 +84,7 @@ Fofa_api = '{Fofa_api}' with open(config_path, 'w', encoding='utf-8-sig') as w: w.write(config_text) else: - with open(config_path) as f: + with open(config_path, encoding='utf-8-sig') as f: f = f.read() if 'Threat Intelligence' in f: console.log('检测存在历史版本配置文件,正在自动更新配置文件……') -- Gitee