mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +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()
|
||||
|
||||
# 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:
|
||||
continue
|
||||
all_items.append(track)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue