Skip to content

Commit

Permalink
fix: use of load instead of loads
Browse files Browse the repository at this point in the history
  • Loading branch information
phthallo committed Jul 5, 2024
1 parent 736d26a commit 10b786f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyflagoras/flag_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

def flag_attr(flag_alias: str) -> str:
flag_alias = flag_alias.lower()
all_flags = json.load(files("pyflagoras").joinpath("flag_aliases.json").read_text(encoding="utf-8"))
all_flags = json.loads(files("pyflagoras").joinpath("flag_aliases.json").read_text(encoding="utf-8"))
if flag_alias not in all_flags:
raise Exception(f"The alias '{flag_alias}' is not associated with a flag.")
else:
Expand Down

0 comments on commit 10b786f

Please sign in to comment.