Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
maddenp-noaa committed Nov 27, 2024
1 parent e00b366 commit 834b42f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/uwtools/config/jinja2.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from jinja2 import Environment, FileSystemLoader, StrictUndefined, Undefined, meta
from jinja2.exceptions import UndefinedError

from uwtools.config.support import UWYAMLConvert, UWYAMLRemove, format_to_config
from uwtools.config.support import UWYAMLConvert, UWYAMLRemove, format_to_config, uw_yaml_loader
from uwtools.exceptions import UWConfigRealizeError
from uwtools.logging import INDENT, MSGWIDTH, log
from uwtools.utils.file import get_file_format, readable, writable
Expand Down Expand Up @@ -269,7 +269,7 @@ def _deref_render(val: str, context: dict, local: Optional[dict] = None) -> str:
context = {**(local or {}), **context}
try:
rendered = _register_filters(env).from_string(val).render(context)
if isinstance(yaml.safe_load(rendered), UWYAMLConvert):
if isinstance(yaml.load(rendered, Loader=uw_yaml_loader()), UWYAMLConvert):
_deref_debug("Held", rendered)
raise UWConfigRealizeError()
_deref_debug("Rendered", rendered)
Expand Down

0 comments on commit 834b42f

Please sign in to comment.