Skip to content

Empty profile of workfile template set it should stop silently instead of raising exception #1900

Description

@moonyuet

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior:

As we have the callback which executes to create first workfile from workfile template in the hosts, the integration would error without try, exception with TemplateProfileNotFound.
See e.g.: https://github.com/ynput/ayon-nuke/blob/4d6baa170d123e6df4167e4d0ecb4f6e95a77439/client/ayon_nuke/api/lib.py#L2571-L2576
https://github.com/ynput/ayon-houdini/blob/b1ac1461d3829dad49ae9af1bff48db7d6e2dd20/client/ayon_houdini/api/lib.py#L1569-L1573

The root cause of the lines:

raise TemplateProfileNotFound((
"No matching profile found for task '{}' of type '{}' "
"with host '{}'"
).format(task_name, task_type, host_name))

Expected Behavior:

Ayon should stop sliently the workfile templated building workflow when empty profile found.

Version

1.9.7

What platform you are running on?

Windows

Steps To Reproduce:

Use Blender as example

  1. Build addon in Blender with ynput/ayon-blender@69a8849
  2. Make sure ayon+settings://blender/templated_workfile_build with no profiles
  3. Launch Blender

Are there any labels you wish to add?

  • I have added the relevant labels to the bug report.

Relevant log output:

Additional context:

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions