Skip to content

Commit 1310d7e

Browse files
authored
1 parent 8e17ebf commit 1310d7e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

scripts/release_helper/common.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,12 @@ def new_comment_policy(self):
300300
comments = [(comment.updated_at.timestamp(), comment.user.login) for comment in
301301
self.issue_package.issue.get_comments()]
302302
comments.sort()
303-
latest_comments = comments[-1][1]
304-
if latest_comments not in self.language_owner:
305-
self.bot_advice.append('new comment.')
303+
try:
304+
latest_comments = comments[-1][1]
305+
if latest_comments not in self.language_owner:
306+
self.bot_advice.append('new comment.')
307+
except Exception:
308+
self.log('Error happened when getting latest comment.')
306309

307310
def multi_link_policy(self):
308311
if self.has_label(MULTI_LINK_LABEL):

0 commit comments

Comments
 (0)