Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Jakub Trllo <[email protected]>
  • Loading branch information
robin-ynput and iLLiCiTiT authored Dec 10, 2024
1 parent e387fec commit 9b41119
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions client/ayon_nuke/api/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ def create_instance_node(
return created_node

def _get_current_selected_nodes(
self,
pre_create_data,
class_name: str = None,
):
self,
pre_create_data,
class_name: str = None,
):
""" Get current node selection.
Arguments:
Expand All @@ -195,7 +195,7 @@ def _get_current_selected_nodes(
]

if class_name and use_selection and not selected_nodes:
raise NukeCreatorError(f"Creator error: Select a {class_name} node.")
raise NukeCreatorError(f"Select a {class_name} node.")

return selected_nodes

Expand Down Expand Up @@ -347,10 +347,9 @@ def integrate_links(self, node_selection, node, outputs=True):
dep_nodes.setInput(0, node)

def _get_current_selected_nodes(
self,
pre_create_data,
class_name: str = None,
):
self,
pre_create_data,
):
""" Get current node selection.
Arguments:
Expand Down

0 comments on commit 9b41119

Please sign in to comment.