From 438b5c806d06c8cd15eecf3d6d52e29a38b4dcb0 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Tue, 18 Aug 2020 10:23:30 +0200 Subject: [PATCH] Fix inverting the user cache In the previous commit we changed the key from ``bugzilla_email`` to simply ``email`` to be consistent with the data we retrieve from FAS, but it looks like we forgot to update this method which thus results in the script failing with a KeyError on ``bugzilla_email``. Signed-off-by: Pierre-Yves Chibon --- distgit_bugzilla_sync/script.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distgit_bugzilla_sync/script.py b/distgit_bugzilla_sync/script.py index f75b0d2..7678515 100644 --- a/distgit_bugzilla_sync/script.py +++ b/distgit_bugzilla_sync/script.py @@ -228,7 +228,7 @@ class BugzillaProxy: that the bugzilla_email is the key and the username the value. """ for username in self.user_cache: - bz_email = self.user_cache[username]["bugzilla_email"].lower() + bz_email = self.user_cache[username]["email"].lower() self.inverted_user_cache[bz_email] = username def _get_bugzilla_email(self, username):