Skip to content

Commit 11f3aa5

Browse files
committed
bug: fix plugin template handling
1 parent 75edba0 commit 11f3aa5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

goosebit/ui/templates/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def attach_permissions_comparison(_: Request) -> dict[str, Any]:
1717

1818

1919
def add_template_handler(handler: Jinja2Templates) -> None:
20-
if hasattr(templates.env.loader, "loaders") and hasattr(handler.env.loader, "loaders"):
20+
if hasattr(templates.env.loader, "loaders"):
2121
templates.env.loader.loaders.append(handler.env.loader)
2222

2323

0 commit comments

Comments
 (0)