Skip to content

Commit 9f88c00

Browse files
authored
If user is not found, handle PR assigning gracefully (#198)
1 parent 1668b6c commit 9f88c00

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/scripts/pr_workflow.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,10 @@ def issue_comment_label_actions(
296296

297297
def add_welcome_comment_set_assignee(self) -> None:
298298
self.pr.create_issue_comment(body=WELCOME_COMMENT)
299-
self.pr.add_to_assignees(self.pr.user.login)
299+
try:
300+
self.pr.add_to_assignees(self.pr.user.login)
301+
except UnknownObjectException:
302+
LOGGER.warning(f"User {self.pr.user.login} can not be assigned to the PR.")
300303

301304

302305
def main() -> None:

0 commit comments

Comments
 (0)