Skip to content

Commit

Permalink
Fix the twin seed checking script when not all seeds are generated.
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Lynch <[email protected]>
  • Loading branch information
aexoden committed Apr 4, 2020
1 parent 5baafe9 commit 79167be
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/rosa_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,13 +190,20 @@ def subcommand_twins(args):
print(f'WARNING: {filename_1} does not exist')
continue

if len(lines_1) == 0:
print(f'WARNING: {filename_1} is empty')
continue

try:
with open(filename_2) as f:
lines_2 = f.readlines()
except FileNotFoundError:
print(f'WARNING: {filename_2} does not exist')
continue

if len(lines_2) == 0:
continue

for index in range(11, len(lines_1)):
matches = re.search('(?P<line>.*)Seed:.*Index.*', lines_1[index])

Expand Down

0 comments on commit 79167be

Please sign in to comment.