Skip to content

Commit

Permalink
Update common_utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Anon-Artist authored Dec 21, 2020
1 parent fbbe14d commit 61ac844
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nni/tools/nnictl/common_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def get_yml_content(file_path):
'''Load yaml file content'''
try:
with open(file_path, 'r') as file:
return yaml.load(file, Loader=yaml.Loader)
return yaml.load(file, Loader=yaml.SafeLoader)
except yaml.scanner.ScannerError as err:
print_error('yaml file format error!')
print_error(err)
Expand Down

0 comments on commit 61ac844

Please sign in to comment.