Initialize current_labels to empty list if no labels exist in pr_reviewer.py

This commit is contained in:
mrT23
2024-03-17 11:39:10 +02:00
parent ac2c062190
commit b6dd57375f

View File

@ -373,6 +373,8 @@ class PRReviewer:
review_labels.append('Possible security concern')
current_labels = self.git_provider.get_pr_labels(update=True)
if not current_labels:
current_labels = []
get_logger().debug(f"Current labels:\n{current_labels}")
if current_labels:
current_labels_filtered = [label for label in current_labels if