mirror of https://github.com/MISP/PyMISP
commit
80764c8275
|
@ -47,10 +47,7 @@ class MISPFileCache(object):
|
||||||
if not path.exists():
|
if not path.exists():
|
||||||
return None
|
return None
|
||||||
with path.open('r', encoding='utf-8') as f:
|
with path.open('r', encoding='utf-8') as f:
|
||||||
if HAS_RAPIDJSON:
|
|
||||||
data = load(f)
|
data = load(f)
|
||||||
else:
|
|
||||||
data = load(f, encoding='utf-8')
|
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue