From 3004ac4ee45e76eb06199fe7613ee90d3100b483 Mon Sep 17 00:00:00 2001 From: Vu Nguyen Date: Sun, 19 Apr 2026 01:29:25 -0500 Subject: [PATCH] fix(miner): port None-metadata guard into paginated status loop Upstream develop commit feba7e8 (2026-04-18) added `m = m or {}` to the single-shot `for m in metas:` loop after this branch already rewrote status() to paginate. Without porting the guard forward, merging this PR would silently drop jp's fix and crash again on palaces with null-metadata drawers. Addresses bensig's review on #851. --- mempalace/miner.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mempalace/miner.py b/mempalace/miner.py index 0b9b5b0..5ab662e 100644 --- a/mempalace/miner.py +++ b/mempalace/miner.py @@ -833,6 +833,7 @@ def status(palace_path: str): if not batch: break for m in batch: + m = m or {} wing_rooms[m.get("wing", "?")][m.get("room", "?")] += 1 offset += len(batch)