From f285c1f9f00c7f820356729ef5516bcaa70370f3 Mon Sep 17 00:00:00 2001 From: Toke Stuart Jepsen Date: Thu, 15 Feb 2024 17:21:18 +0000 Subject: [PATCH] Hound --- openpype/hosts/nuke/api/utils.py | 2 +- openpype/hosts/nuke/plugins/load/load_clip.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/openpype/hosts/nuke/api/utils.py b/openpype/hosts/nuke/api/utils.py index 41857bd4ca8..62552a24083 100644 --- a/openpype/hosts/nuke/api/utils.py +++ b/openpype/hosts/nuke/api/utils.py @@ -132,7 +132,7 @@ def get_colorspace_list(colorspace_knob): colorspaces = [] try: - for count, value in enumerate(colorspace_knob.values()): + for count, _ in enumerate(colorspace_knob.values()): colorspace_knob.setValue(count) colorspaces.append(colorspace_knob.value()) finally: diff --git a/openpype/hosts/nuke/plugins/load/load_clip.py b/openpype/hosts/nuke/plugins/load/load_clip.py index 2c40d9d6577..0cdb7fc5969 100644 --- a/openpype/hosts/nuke/plugins/load/load_clip.py +++ b/openpype/hosts/nuke/plugins/load/load_clip.py @@ -489,7 +489,6 @@ def _get_colorspace_data(self, version_doc, representation_doc, filepath): Any[str,None]: colorspace name or None """ # Get backward compatible colorspace key. - representation_data = representation_doc["data"] colorspace = representation_doc["data"].get("colorspace") self.log.debug( f"Colorspace from representation colorspace: {colorspace}"