From 57c31dae0a35227d34a5cb6d28be941bce4a0568 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Rodrigues?= Date: Tue, 15 Sep 2020 14:40:20 -0300 Subject: [PATCH] Fix warning yaml no runserver (#3275) --- sapl/base/templatetags/menus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapl/base/templatetags/menus.py b/sapl/base/templatetags/menus.py index 5c5d61193..0c3f54ca9 100644 --- a/sapl/base/templatetags/menus.py +++ b/sapl/base/templatetags/menus.py @@ -85,7 +85,7 @@ def nav_run(context, path=None): try: rendered = yaml_template.template.render(context) - menu = yaml.load(rendered) + menu = yaml.load(rendered, yaml.Loader) resolve_urls_inplace(menu, root_pk, rm, context) except Exception as e: raise Exception(_("""Erro na conversão do yaml %s. App: %s.