Clean up warning and deprecation issues.
This commit is contained in:
parent
49e2479efa
commit
c5250b5f3f
2 changed files with 7 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue