mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Fixed path resolving not finding the workfile in certain conditions
In case the workfile only contains the project name, the workfile is not found because while the regex matches, the match doesn't have any group, and so it throws an exception.
This commit is contained in:
parent
2f0f9508d4
commit
e97b6ce01f
1 changed files with 4 additions and 0 deletions
|
|
@ -265,6 +265,10 @@ def get_last_workfile_with_version(
|
|||
if not match:
|
||||
continue
|
||||
|
||||
if not match.groups():
|
||||
output_filenames.append(filename)
|
||||
continue
|
||||
|
||||
file_version = int(match.group(1))
|
||||
if version is None or file_version > version:
|
||||
output_filenames[:] = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue