Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions ifex/models/ifex/ifex_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
jinja_env = JinjaTemplateEnv.JinjaTemplateEnv("simple")

# Exception:
class GeneratorError(BaseException):
class GeneratorError(Exception):
def __init__(self, m):
self.msg = m

Expand Down Expand Up @@ -69,7 +69,6 @@ def _gen_with_default_template(node : Any):
nodetype=type(node).__name__
if nodetype == 'StrictUndefined':
raise GeneratorError(f'The template seems to call gen() with an unknown field name: node {node} is of type StrictUndefined. Please check!')
return ""

# Plain types -> print as-is
if isinstance(node, (str, int, float)):
Expand Down