diff --git a/tig.py b/tig.py index e7481f7740e67caf5bda155dbb1357db401f550e..689d66a2e8054fd34a1d8bb5c8cb51305a87f305 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('检测存在历史版本配置文件,正在自动更新配置文件……')