Skip to content

Commit fc25622

Browse files
akxtomasr8
andauthored
Incorporate CR suggestion
Co-authored-by: Tomas R <tomas.roun8@gmail.com>
1 parent 78e6df1 commit fc25622

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

babel/messages/frontend.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,7 @@ def _parse_config_object(config: dict, *, filename="(unknown)"):
10521052
if "mapping" in config:
10531053
raise ValueError(f"{filename}: 'mapping' is not a valid key, did you mean 'mappings'?")
10541054

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

0 commit comments

Comments
 (0)