mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Fixed return
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
parent
1f88b90cba
commit
1da4abc9bd
1 changed files with 4 additions and 3 deletions
|
|
@ -234,9 +234,10 @@ def _get_last_version_files(
|
|||
fields={"files"}
|
||||
)
|
||||
|
||||
if not matching_repres:
|
||||
return None
|
||||
matching_repre = list(matching_repres)[0]
|
||||
matching_repre = next(matching_repres, None)
|
||||
if not matching_repre:
|
||||
return None, None
|
||||
|
||||
|
||||
repre_file_paths = [
|
||||
file_info["path"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue