Fixed return

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
Petr Kalis 2025-10-13 13:35:46 +02:00 committed by GitHub
parent 1f88b90cba
commit 1da4abc9bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"]