Browse Source

Fix warning yaml no runserver (#3275)

pull/3277/head
João Rodrigues 4 years ago
committed by GitHub
parent
commit
57c31dae0a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      sapl/base/templatetags/menus.py

2
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.

Loading…
Cancel
Save