Skip to content

Commit b249190

Browse files
[iam] Use lowercase when matching emails (#2324)
1 parent d17bd13 commit b249190

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bugbot/iam.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,8 @@ def update_bugzilla_emails(data: Dict[str, dict]) -> None:
233233
def handler(bz_user, data):
234234
if bz_user["id"] in users_by_bugzilla_id:
235235
person = users_by_bugzilla_id[bz_user["id"]]
236-
elif bz_user["name"] in data:
237-
person = data[bz_user["name"]]
236+
elif bz_user["name"].lower() in data:
237+
person = data[bz_user["name"].lower()]
238238
else:
239239
raise Exception(f"Can't find {bz_user['name']} in the data")
240240

0 commit comments

Comments
 (0)