fix in event parser

This commit is contained in:
Robin Müller 2022-02-03 17:31:18 +01:00
parent 80312ed21e
commit 24fa9a3fe3
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC
1 changed files with 3 additions and 1 deletions

View File

@ -235,7 +235,7 @@ class FileParser:
r"\[EXPORT][\s]*:[\s]*\[COMMENT]", moving_window[current_idx]
)
if not descrip_match:
while current_idx > 0:
while True:
if re.search(
break_pattern, moving_window[current_idx]
):
@ -245,6 +245,8 @@ class FileParser:
)
if descrip_match:
break
if current_idx <= 0:
break
current_idx -= 1
if descrip_match:
current_build_idx = current_idx