Skip to content

Commit c0edb96

Browse files
committed
fix(collector): use json.load() to load file data
1 parent 36f3fde commit c0edb96

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Collector/Collector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def search(self, crashInfo: CrashInfo) -> tuple[str | None, dict[str, Any] | Non
216216
metadata: dict[str, Any] | None = None
217217
if os.path.exists(metadataFile):
218218
with open(metadataFile) as m:
219-
metadata = json.loads(m.read())
219+
metadata = json.load(m)
220220

221221
return (sigFile, metadata)
222222

0 commit comments

Comments
 (0)