Skip to content

Commit

Permalink
bug: use yaml safe loader
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
  • Loading branch information
vsoch committed May 11, 2024
1 parent 10a2100 commit 18579f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jobspec/core/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def load(self, filename):
try:
self.data = json.loads(filename)
except:
self.data = yaml.load(filename)
self.data = yaml.load(filename, Loader=yaml.SafeLoader)

# Case 4: wtf are you giving me? :X
if not self.data:
Expand Down

0 comments on commit 18579f3

Please sign in to comment.