Skip to content

Commit

Permalink
The safe loader is needed with load_all (#146)
Browse files Browse the repository at this point in the history
* try safeloader with load all

Signed-off-by: vsoch <vsoch@users.noreply.github.com>
Co-authored-by: vsoch <vsoch@users.noreply.github.com>
  • Loading branch information
vsoch and vsoch committed Nov 10, 2021
1 parent e496a48 commit 888a79f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Critical items to know are:


## [v3.x](https://github.com/expfactory/expfactory/tree/master) (master)
- updating yaml to use safe_load (3.2.1)
- updating yaml to use safe_load (3.2.11)
- adding support for receiving a token in the url and updating docs template (3.2.0)
- setting csrf token expire time to 3 hours (3.19)
- update of base images to ubuntu 20.04 (3.18)
Expand Down
2 changes: 1 addition & 1 deletion expfactory/validator/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def _validate_markdown(self, expfile):

if os.path.exists(expfile):
with open(expfile, "r") as stream:
docs = yaml.safe_load(stream)
docs = yaml.load_all(stream, Loader=yaml.SafeLoader)
for doc in docs:
if isinstance(doc, dict):
for k, v in doc.items():
Expand Down
2 changes: 1 addition & 1 deletion expfactory/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"""

__version__ = "3.2.1"
__version__ = "3.2.11"
AUTHOR = "Vanessa Sochat"
AUTHOR_EMAIL = "vsoch@users.noreply.github.com"
NAME = "expfactory"
Expand Down

0 comments on commit 888a79f

Please sign in to comment.