Skip to content

Commit

Permalink
Fix gen_localnet.py json exception
Browse files Browse the repository at this point in the history
(cherry picked from commit 2604264)
  • Loading branch information
sug0 authored and mergify[bot] committed Nov 26, 2024
1 parent a3e1747 commit cac1f85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/gen_localnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cac1f85

Please sign in to comment.