mirror of https://github.com/MISP/PyMISP
fix: [abstract] Forces file to be read with utf8 encoding
parent
c77603eb30
commit
f965e579d7
|
@ -46,7 +46,7 @@ class MISPFileCache(object):
|
||||||
def _load_json(path: Path) -> Union[dict, None]:
|
def _load_json(path: Path) -> Union[dict, None]:
|
||||||
if not path.exists():
|
if not path.exists():
|
||||||
return None
|
return None
|
||||||
with path.open('r') as f:
|
with path.open('r', encoding='utf-8') as f:
|
||||||
if HAS_RAPIDJSON:
|
if HAS_RAPIDJSON:
|
||||||
data = load(f)
|
data = load(f)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue