Skip to content

Commit

Permalink
[processing] be safe when reading YAML (fix #30779)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy authored and nyalldawson committed Sep 12, 2019
1 parent 4c07c54 commit 41ad75a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/help/__init__.py
Expand Up @@ -43,7 +43,7 @@ def loadShortHelp():
with codecs.open(filename, encoding='utf-8') as stream:
with warnings.catch_warnings():
warnings.filterwarnings("ignore", category=DeprecationWarning)
for k, v in yaml.load(stream).items():
for k, v in yaml.load(stream, Loader=yaml.SafeLoader).items():
if v is None:
continue
h[k] = QCoreApplication.translate("{}Algorithm".format(f[:-5].upper()), v)
Expand Down

0 comments on commit 41ad75a

Please sign in to comment.