Skip to content

Commit 7fb0c97

Browse files
committed
Discard empty attributes in rules generator data
Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent 40f9390 commit 7fb0c97

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

etc/scripts/licenses/buildrules.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ def __attrs_post_init__(self, *args, **kwargs):
7272
print(rdat)
7373
print("########################################################")
7474
raise
75+
self.data = {k: v for k, v in self.data.items() if v is not None or (v is None and k == "license_expression")}
7576

7677

7778
def load_data(location="00-new-licenses.txt"):

0 commit comments

Comments
 (0)