mirror of
https://github.com/clearml/clearml-server
synced 2025-01-31 10:56:48 +00:00
15 lines
337 B
Plaintext
15 lines
337 B
Plaintext
|
{% 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 %}
|