annotations: avoid generating a KeyError exception
authorAndrea Righi <andrea.righi@canonical.com>
Tue, 15 Nov 2022 11:02:56 +0000 (12:02 +0100)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 15 Nov 2022 11:02:56 +0000 (12:02 +0100)
commit6c3b0f701a80641108ecfbcf07cd74887ac56961
tree8be487b276181986e8af6b9701af2163904deb02
parent9d8fe884a1936108be6b1d4e67b683eacab0274c
annotations: avoid generating a KeyError exception

Always try to return None when a config is not defined in annotations
rather then throwing an exception.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
kconfig/annotations.py