Skip to content

Commit

Permalink
Removing warning from yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
jaesivsm committed May 20, 2020
1 parent f10563a commit a949142
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion the_conf/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ def read(*paths):
try:
if ext in {'yml', 'yaml'}:
with open(path, 'r') as fd:
yield path, ext, yaml.load(fd.read())
yield path, ext, yaml.load(fd.read(),
Loader=yaml.FullLoader)
elif ext == 'json':
with open(path, 'r') as fd:
yield path, ext, json.load(fd)
Expand Down

0 comments on commit a949142

Please sign in to comment.