upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/tools/rbf0_encode.py
diff options
context:
space:
mode:
authorItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 17:01:46 -0500
committerItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 17:01:46 -0500
commit3cf5d32a3195ed3d56ea2ec4ab40c86ea404fde0 (patch)
tree8a706d90a1b6738fe9b2d0e1192bd6607b1af118 /tools/rbf0_encode.py
parent0ae9a986e6d474433a2e21c99334c522e757bc09 (diff)
parent6b1b479aa2fe7e5f216a98fbb377d1cd6fdc0f04 (diff)
Merge pull request #3379 from kapitche
Diffstat (limited to 'tools/rbf0_encode.py')
-rw-r--r--tools/rbf0_encode.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/rbf0_encode.py b/tools/rbf0_encode.py
index 2cf46a68e..8c8818612 100644
--- a/tools/rbf0_encode.py
+++ b/tools/rbf0_encode.py
@@ -227,7 +227,7 @@ def write_all(report, out_dir):
227 try: 227 try:
228 with open(report, encoding="utf-8") as f: 228 with open(report, encoding="utf-8") as f:
229 data = json.load(f) 229 data = json.load(f)
230 except (OSError, json.JSONDecodeError) as e: 230 except (OSError, ValueError) as e: # ValueError: bad JSON or non-UTF-8 bytes
231 raise SystemExit(f"{report}: cannot read report: {e}") from None 231 raise SystemExit(f"{report}: cannot read report: {e}") from None
232 if not isinstance(data, dict) or data.get("tool") != "rbf0_tree": 232 if not isinstance(data, dict) or data.get("tool") != "rbf0_tree":
233 raise SystemExit(f"{report}: not an rbf0_tree.py JSON report") 233 raise SystemExit(f"{report}: not an rbf0_tree.py JSON report")