Skip to content

Commit 242a88d

Browse files
committed
Fix bisect tool to better account for the case when import PR regresses
1 parent 9938e94 commit 242a88d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

mx.graalpython/mx_graalpython_bisect.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,17 +142,13 @@ def repo_name(self):
142142

143143
@property
144144
def good_commit(self):
145-
try:
145+
if 0 <= self.good_index < len(self.commits):
146146
return self.commits[self.good_index]
147-
except IndexError:
148-
return None
149147

150148
@property
151149
def bad_commit(self):
152-
try:
150+
if 0 <= self.bad_index < len(self.commits):
153151
return self.commits[self.bad_index]
154-
except IndexError:
155-
return None
156152

157153
def visualize(self, level=1):
158154
level_marker = '=' * level

0 commit comments

Comments
 (0)