Skip to content

Commit e6056e8

Browse files
committed
use json well
1 parent 0254c5d commit e6056e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/dir_listing.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ def spider(directory, reverse=False):
5151
def fetch_summary(meeting):
5252
if path.exists(f"{auto_minutes_path}/{meeting}/.manifest.json"):
5353
summary = [summary_header]
54-
manifest = json.load(f"{auto_minutes_path}/{meeting}/.manifest.json")
54+
with open(f"{auto_minutes_path}/{meeting}/.manifest.json") as fh:
55+
manifest = json.load(fh)
5556
sessions = [s.sessionId for s in manifest.sessionGroups
5657
if s["sessionName"] == wgname.upper()]
5758
for session_id in sessions:

0 commit comments

Comments
 (0)