mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-26 12:57:50 +08:00
增加open容错处理
This commit is contained in:
@@ -25,7 +25,7 @@ from common.domain import Domain
|
||||
|
||||
def get_fingerprint():
|
||||
path = config.data_storage_path.joinpath('fingerprints.json')
|
||||
with open(path) as file:
|
||||
with open(path, encoding='utf-8', errors='ignore') as file:
|
||||
fingerprints = json.load(file)
|
||||
return fingerprints
|
||||
|
||||
|
||||
Reference in New Issue
Block a user