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:
Simone Barbieri 2022-09-23 16:18:08 +01:00
parent 2f0f9508d4
commit e97b6ce01f

View file

@ -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[:] = []