[generator][python] Fixed running with --contunue and without --build_suffix
This commit is contained in:
parent
9b0cfdcb2b
commit
b7f4d7a7ef
1 changed files with 5 additions and 1 deletions
|
@ -377,7 +377,11 @@ class Env:
|
|||
if build_suffix:
|
||||
build_name = f"{build_name}{suffix_div}{build_suffix}"
|
||||
else:
|
||||
date_str, build_suffix = build_name.split(suffix_div, maxsplit=1)
|
||||
s = build_name.split(suffix_div, maxsplit=1)
|
||||
if len(s) == 1:
|
||||
s.append("")
|
||||
|
||||
date_str, build_suffix = s
|
||||
dt = datetime.datetime.strptime(date_str, version_format)
|
||||
|
||||
self.build_suffix = build_suffix
|
||||
|
|
Reference in a new issue