diff --git a/pype/nuke/lib.py b/pype/nuke/lib.py index 9282443fcf..db1a5919c3 100644 --- a/pype/nuke/lib.py +++ b/pype/nuke/lib.py @@ -180,9 +180,10 @@ def format_anatomy(data): try: padding = int(anatomy.templates['render']['padding']) except KeyError as e: - msg = "`padding` key is not in `render` " + msg = ("`padding` key is not in `render` " "Anatomy template. Please, add it there and restart " - "the pipeline (padding: \"4\"): `{}`".format(e) + "the pipeline (padding: \"4\"): `{}`").format(e) + log.error(msg) nuke.message(msg) @@ -770,11 +771,11 @@ class WorkfileSettings(object): } if any(x for x in data.values() if x is None): - msg = "Missing set shot attributes in DB." + msg = ("Missing set shot attributes in DB." "\nContact your supervisor!." "\n\nWidth: `{width}`" "\nHeight: `{height}`" - "\nPixel Asspect: `{pixel_aspect}`".format(**data) + "\nPixel Asspect: `{pixel_aspect}`").format(**data) log.error(msg) nuke.message(msg) @@ -793,8 +794,8 @@ class WorkfileSettings(object): ) except Exception as e: bbox = None - msg = "{}: {} \nFormat:Crop need to be set with dots, example: " - "0.0.1920.1080, /nSetting to default".format(__name__, e) + msg = ("{}:{} \nFormat:Crop need to be set with dots, example: " + "0.0.1920.1080, /nSetting to default").format(__name__, e) log.error(msg) nuke.message(msg) diff --git a/pype/plugins/nuke/create/create_gizmo.py b/pype/plugins/nuke/create/create_gizmo.py index 93fbbcf144..ca199b8800 100644 --- a/pype/plugins/nuke/create/create_gizmo.py +++ b/pype/plugins/nuke/create/create_gizmo.py @@ -36,8 +36,8 @@ class CreateGizmo(Creator): node["tile_color"].setValue(int(self.node_color, 16)) return anlib.imprint(node, self.data) else: - msg = "Please select a group node " - "you wish to publish as the gizmo" + msg = ("Please select a group node " + "you wish to publish as the gizmo") self.log.error(msg) nuke.message(msg) @@ -60,8 +60,8 @@ class CreateGizmo(Creator): return anlib.imprint(gizmo_node, self.data) else: - msg = "Please select nodes you " - "wish to add to the gizmo" + msg = ("Please select nodes you " + "wish to add to the gizmo") self.log.error(msg) nuke.message(msg) return diff --git a/pype/plugins/nuke/create/create_write.py b/pype/plugins/nuke/create/create_write.py index c5c7d659e3..74e450f267 100644 --- a/pype/plugins/nuke/create/create_write.py +++ b/pype/plugins/nuke/create/create_write.py @@ -42,8 +42,8 @@ class CreateWriteRender(plugin.PypeCreator): nodes = self.nodes if not (len(nodes) < 2): - msg = "Select only one node. The node you want to connect to, " - "or tick off `Use selection`" + msg = ("Select only one node. The node you want to connect to, " + "or tick off `Use selection`") log.error(msg) nuke.message(msg) @@ -137,8 +137,8 @@ class CreateWritePrerender(plugin.PypeCreator): nodes = self.nodes if not (len(nodes) < 2): - msg = "Select only one node. The node you want to connect to, " - "or tick off `Use selection`" + msg = ("Select only one node. The node you want to connect to, " + "or tick off `Use selection`") self.log.error(msg) nuke.message(msg) diff --git a/pype/plugins/nuke/publish/extract_review_data_lut.py b/pype/plugins/nuke/publish/extract_review_data_lut.py index 4373309363..90b1fda1ec 100644 --- a/pype/plugins/nuke/publish/extract_review_data_lut.py +++ b/pype/plugins/nuke/publish/extract_review_data_lut.py @@ -41,7 +41,7 @@ class ExtractReviewDataLut(pype.api.Extractor): with anlib.maintained_selection(): exporter = pnlib.ExporterReviewLut( self, instance - ) + ) data = exporter.generate_lut() # assign to representations