fix: [interpol] use yaml.safe_load

This commit is contained in:
Christophe Vandeplas 2024-04-23 10:38:47 +02:00
parent 1651787577
commit 35d9b7bb67
No known key found for this signature in database
GPG key ID: BDC48619FFDC5A5B

View file

@ -42,7 +42,7 @@ contains _data folder with
''' '''
with open(os.path.join(args.path, '_data', 'entities.yaml'), 'r') as f: with open(os.path.join(args.path, '_data', 'entities.yaml'), 'r') as f:
entities_data = yaml.load(f, Loader=yaml.BaseLoader) entities_data = yaml.safe_load(f)
try: try:
with open(os.path.join('..', 'galaxies', 'interpol-entities.json'), 'r') as f: with open(os.path.join('..', 'galaxies', 'interpol-entities.json'), 'r') as f: