From e12fa847c959cd4af1145810dcf74a38433232c2 Mon Sep 17 00:00:00 2001 From: "robin@ynput.io" Date: Mon, 3 Feb 2025 11:29:34 +0100 Subject: [PATCH] Address feedback from PR. --- client/ayon_core/plugins/publish/collect_otio_review.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/ayon_core/plugins/publish/collect_otio_review.py b/client/ayon_core/plugins/publish/collect_otio_review.py index 24f2f6c3e6..064d4e3f3b 100644 --- a/client/ayon_core/plugins/publish/collect_otio_review.py +++ b/client/ayon_core/plugins/publish/collect_otio_review.py @@ -55,10 +55,12 @@ class CollectOtioReview(pyblish.api.InstancePlugin): # loop all tracks and match with name in `reviewTrack` for track in otio_timeline.tracks: - # Skip the loop + + # No review track defined, skip the loop if review_track_name is None: break + # Not current review track, skip it. if review_track_name != track.name: continue