Skip to content

Commit

Permalink
[iam] Use lowercase when matching emails (#2324)
Browse files Browse the repository at this point in the history
  • Loading branch information
suhaibmujahid committed Jan 12, 2024
1 parent d17bd13 commit b249190
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bugbot/iam.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ def update_bugzilla_emails(data: Dict[str, dict]) -> None:
def handler(bz_user, data):
if bz_user["id"] in users_by_bugzilla_id:
person = users_by_bugzilla_id[bz_user["id"]]
elif bz_user["name"] in data:
person = data[bz_user["name"]]
elif bz_user["name"].lower() in data:
person = data[bz_user["name"].lower()]
else:
raise Exception(f"Can't find {bz_user['name']} in the data")

Expand Down

0 comments on commit b249190

Please sign in to comment.