From 672eff446906dacba5476815dc785246b83eae0f Mon Sep 17 00:00:00 2001 From: Quinten Steenhuis Date: Thu, 20 Aug 2026 11:16:05 -0400 Subject: [PATCH] Use imports: instead of modules: for json and html `modules:` performs `from import *`, which never binds the module name itself, so `html.escape(...)` and `json.dumps(...)` in the al_menu_items_default_items block raised "reference to a variable 'html' that could not be looked up". `imports:` does `import `. Co-Authored-By: Claude Opus 5 --- docassemble/AssemblyLine/data/questions/al_visual.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docassemble/AssemblyLine/data/questions/al_visual.yml b/docassemble/AssemblyLine/data/questions/al_visual.yml index 679dbfe0..fb5cbe20 100644 --- a/docassemble/AssemblyLine/data/questions/al_visual.yml +++ b/docassemble/AssemblyLine/data/questions/al_visual.yml @@ -2,7 +2,7 @@ include: - docassemble.ALToolbox:translation_strings.yml --- -modules: +imports: - json - html ---