From 0b7ce4be2be493a24e09c2cf352816a175dfa8fd Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Tue, 24 Sep 2024 17:47:59 +0200 Subject: [PATCH] Make changelog avatars optional --- changelog/gerrit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelog/gerrit.py b/changelog/gerrit.py index 8ce6fa1..9c7e117 100644 --- a/changelog/gerrit.py +++ b/changelog/gerrit.py @@ -71,7 +71,7 @@ def __init__(self, url, obj): except KeyError: self.email = 'unknown' self.avatars = {} - for i in obj['avatars']: + for i in obj.get('avatars', []): self.avatars[i['height']] = i['url']