Skip to content

Commit

Permalink
Fixing bug with yaml loader from #91
Browse files Browse the repository at this point in the history
  • Loading branch information
ztgrace committed Apr 26, 2020
1 parent 7b76fd4 commit b59c38b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion changeme/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,9 +312,10 @@ def parse_yaml(f):
with open(f, 'r') as fin:
raw = fin.read()
try:
parsed = yaml.safe_load(raw, Loader=yaml.FullLoader)
parsed = yaml.safe_load(raw)
except Exception as e:
logger.error("[parse_yaml] %s is not a valid yaml file" % f)
logger.debug(e)
return None
return parsed

Expand Down
2 changes: 1 addition & 1 deletion changeme/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '1.2.2'
__version__ = '1.2.3'
contributors = [
"ztgrace",
"the-c0d3r",
Expand Down

0 comments on commit b59c38b

Please sign in to comment.