mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
Refactor loop to handle empty sequence case
Adjusted loop to handle empty current sequence by appending an empty list if no tracks are present.
This commit is contained in:
parent
fbacbec94e
commit
3e86be2783
1 changed files with 1 additions and 1 deletions
|
|
@ -130,7 +130,7 @@ def ls():
|
||||||
all_items = lib.get_track_items()
|
all_items = lib.get_track_items()
|
||||||
|
|
||||||
# append all video tracks
|
# append all video tracks
|
||||||
for track in lib.get_current_sequence():
|
for track in (lib.get_current_sequence() or []):
|
||||||
if type(track) != hiero.core.VideoTrack:
|
if type(track) != hiero.core.VideoTrack:
|
||||||
continue
|
continue
|
||||||
all_items.append(track)
|
all_items.append(track)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue