Fix - check existence only if not None

review_path might be None
This commit is contained in:
Petr Kalis 2023-02-23 11:30:15 +01:00 committed by Kayla Man
parent 131e27008c
commit 6568db35af

View file

@ -187,7 +187,7 @@ class IntegrateSlackAPI(pyblish.api.InstancePlugin):
repre_review_path = get_publish_repre_path(
instance, repre, False
)
if os.path.exists(repre_review_path):
if repre_review_path and os.path.exists(repre_review_path):
review_path = repre_review_path
if "burnin" in tags: # burnin has precedence if exists
break