Skip to content

Commit

Permalink
Allow either .yaml or .yml suffixes for alias files
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWrigley committed Apr 24, 2023
1 parent 808afae commit b10e82c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extra_data/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ def _load_aliases_from_file(self, aliases_path):
with open(aliases_path, 'r') as f:
data = json.load(f)

elif aliases_path.suffix == '.yaml':
elif aliases_path.suffix in ['.yaml', '.yml']:
import yaml

with open(aliases_path, 'r') as f:
Expand Down

0 comments on commit b10e82c

Please sign in to comment.