Remove unintended code block and fix Hound lint warnings for <79 chars width

This commit is contained in:
Fabia Serra Arrizabalaga 2023-02-08 19:39:47 +01:00
parent b1ef1b751f
commit c13416b685
3 changed files with 21 additions and 37 deletions

View file

@ -168,7 +168,9 @@ class IntegrateSlackAPI(pyblish.api.InstancePlugin):
thumbnail_path = None
for repre in instance.data.get("representations", []):
if repre.get('thumbnail') or "thumbnail" in repre.get('tags', []):
repre_thumbnail_path = get_representation_path(instance, repre, False)
repre_thumbnail_path = get_representation_path(
instance, repre, False
)
if os.path.exists(repre_thumbnail_path):
thumbnail_path = repre_thumbnail_path
break
@ -182,7 +184,9 @@ class IntegrateSlackAPI(pyblish.api.InstancePlugin):
if (repre.get("review")
or "review" in tags
or "burnin" in tags):
repre_review_path = get_representation_path(instance, repre, False)
repre_review_path = get_representation_path(
instance, repre, False
)
if os.path.exists(repre_review_path):
review_path = repre_review_path
if "burnin" in tags: # burnin has precedence if exists