From 9b41119df14418960dc13a13efad8cfa1f7817f0 Mon Sep 17 00:00:00 2001 From: Robin De Lillo Date: Tue, 10 Dec 2024 11:47:53 -0500 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com> --- client/ayon_nuke/api/plugin.py | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/client/ayon_nuke/api/plugin.py b/client/ayon_nuke/api/plugin.py index 89b9848..1e418a8 100644 --- a/client/ayon_nuke/api/plugin.py +++ b/client/ayon_nuke/api/plugin.py @@ -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: @@ -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 @@ -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: