Clean up warning and deprecation issues.

This commit is contained in:
Eric S. Raymond 2022-04-12 10:53:37 -04:00
parent 49e2479efa
commit c5250b5f3f
2 changed files with 7 additions and 3 deletions

View file

@ -197,7 +197,7 @@ if __name__ == "__main__":
# load DB
try:
with open(YAML_PATH, "r") as f:
db = yaml.load(f)
db = yaml.safe_load(f)
except IOError as e:
print('ERROR: could not load {} ({}})'.format(YAML_PATH, e.strerror))
exit(-1)