mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
do not crash if task is not filled
This commit is contained in:
parent
2c7fc21601
commit
d26df62e15
1 changed files with 0 additions and 4 deletions
|
|
@ -83,10 +83,6 @@ class OpenTaskPath(LauncherAction):
|
|||
if os.path.exists(valid_workdir):
|
||||
return valid_workdir
|
||||
|
||||
# If task was selected, try to find asset path only to asset
|
||||
if not task_name:
|
||||
raise AssertionError("Folder does not exist.")
|
||||
|
||||
data.pop("task", None)
|
||||
workdir = anatomy.templates_obj["work"]["folder"].format(data)
|
||||
valid_workdir = self._find_first_filled_path(workdir)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue