Skip to content

Commit

Permalink
Incorporate CR suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: Tomas R <tomas.roun8@gmail.com>
  • Loading branch information
akx and tomasr8 committed Aug 5, 2024
1 parent 7adc789 commit c2fbd82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion babel/messages/frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,7 @@ def _parse_config_object(config: dict, *, filename="(unknown)"):
if "mapping" in config:
raise ValueError(f"{filename}: 'mapping' is not a valid key, did you mean 'mappings'?")

mappings_read = config.get("mappings") or []
mappings_read = config.get("mappings", [])
if not isinstance(mappings_read, list):
raise ValueError(f"{filename}: mappings: Expected a list, got {type(mappings_read)!r}")
for idx, entry in enumerate(mappings_read):
Expand Down

0 comments on commit c2fbd82

Please sign in to comment.