clearml-server/server/apierrors/autogen/templates/init.jinja2

15 lines
337 B
Plaintext
Raw Normal View History

2019-06-10 21:24:35 +00:00
{% from 'templates/error.jinja2' import error_class with context %}
{% if sections %}
from {{ base_class_module }} import {{ base_class_name }}
{% endif %}
{% for _, name in sections %}
from . import {{ name }}
{% endfor %}
{% for code, name in sections %}
{{ error_class(name|cls_name, name|replace('_', ' '), code) }}
{% endfor %}