mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Check file existence for error check
This commit is contained in:
parent
7b5ff1394c
commit
706d72f045
1 changed files with 1 additions and 1 deletions
|
|
@ -876,7 +876,7 @@ class AbstractTemplateBuilder(ABC):
|
|||
).format(host_name.title()))
|
||||
|
||||
resolved_path = self.resolve_template_path(path)
|
||||
if not resolved_path:
|
||||
if not resolved_path or not os.path.exists(resolved_path):
|
||||
raise TemplateNotFound(
|
||||
f"Template path '{path}' does not resolve to a valid existing "
|
||||
"template file on disk."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue