Skip to content

Commit 849c12f

Browse files
Use strict undefined (#633)
1 parent c621ef8 commit 849c12f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/betterproto/plugin/compiler.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def outputfile_compiler(output_file: OutputTemplate) -> str:
3232
trim_blocks=True,
3333
lstrip_blocks=True,
3434
loader=jinja2.FileSystemLoader(templates_folder),
35+
undefined=jinja2.StrictUndefined,
3536
)
3637
# Load the body first so we have a compleate list of imports needed.
3738
body_template = env.get_template("template.py.j2")

0 commit comments

Comments
 (0)