Fail clearly if the path can't be resolved instead of setting path to "None"

This commit is contained in:
Roy Nieterau 2025-11-22 13:29:49 +01:00
parent 73dfff9191
commit 70bf746c7a

View file

@ -181,6 +181,8 @@ def get_instance_uri_path(
anatomy=context.data["anatomy"],
**names
)
if not path:
raise RuntimeError(f"Unable to resolve publish path for: {names}")
# Ensure `None` for now is also a string
path = str(path)