From 70b979ad1d74986214467480f092ce876e4889d9 Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Wed, 17 Apr 2024 11:15:57 +0200 Subject: [PATCH] Add 'optional' to the list of known label attributes Fixes: "Unknown label: optional" --- changelog/gerrit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelog/gerrit.py b/changelog/gerrit.py index 18234ef..8ce6fa1 100644 --- a/changelog/gerrit.py +++ b/changelog/gerrit.py @@ -96,7 +96,7 @@ def __init__(self, url, obj): for lbl in obj['labels']: self.labels[lbl] = {} for k, v in obj['labels'][lbl].items(): - if k in ('blocking', 'value', 'default_value', 'description', 'values', 'all'): + if k in ('blocking', 'value', 'default_value', 'description', 'optional', 'values', 'all'): self.labels[lbl][k] = v elif k in ('approved', 'rejected', 'recommended', 'disliked'): self.labels[lbl][k] = GerritUser(url, v)