Skip to content

Commit

Permalink
Fixed problem when missing reviewers
Browse files Browse the repository at this point in the history
  • Loading branch information
witx98 committed Jan 20, 2025
1 parent 06b9536 commit f1d1236
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions valhalla/ci_provider/gitlab/merge_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ def create(self, merge_request_config: MergeRequestConfig):
def __get_reviewer_ids(self, reviewers: List[str]) -> List[int]:
result = []

if not reviewers:
warn("Reviewers list is None or empty")
return result

for rev in reviewers:
try:
user = self.gl.users.list(username=rev)[0]
Expand Down

0 comments on commit f1d1236

Please sign in to comment.