From 260426484f4c7730c065d525a3674d1c6cd31d48 Mon Sep 17 00:00:00 2001 From: Tiago Carvalho Date: Sun, 24 Nov 2024 13:11:46 +0000 Subject: [PATCH] Fix `gen_localnet.py` json exception --- scripts/gen_localnet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gen_localnet.py b/scripts/gen_localnet.py index 6189e2fc8f..3d77cb329a 100755 --- a/scripts/gen_localnet.py +++ b/scripts/gen_localnet.py @@ -483,7 +483,7 @@ def full_nodes_object(s): def load_json(s): try: return json.loads(s) - except json.decode.JSONDecodeError: + except json.JSONDecodeError: # assume we're dealing with a file path with open(s, "r") as f: return json.load(f)