mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 17:04:54 +01:00
Fix bug in iter_parents
Previously an empty string could be yielded for e.g. `"|cube"` splitting to `["", "cube"]`
This commit is contained in:
parent
66f8ebbd0f
commit
338bb1560a
1 changed files with 1 additions and 1 deletions
|
|
@ -1876,7 +1876,7 @@ def iter_parents(node):
|
|||
"""
|
||||
while True:
|
||||
split = node.rsplit("|", 1)
|
||||
if len(split) == 1:
|
||||
if len(split) == 1 or not split[0]:
|
||||
return
|
||||
|
||||
node = split[0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue