1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-18 12:06:08 +00:00

fw/DatabaseOutput: Only attempt to extract config if avaliable

Do not try to parse `kernel_config` if no data is present.
This commit is contained in:
Marc Bonnici 2019-07-18 16:42:05 +01:00
parent 0ff6b4842a
commit 4bb1f4988f

View File

@ -948,8 +948,9 @@ class DatabaseOutput(Output):
def kernel_config_from_db(raw):
kernel_config = {}
for k, v in zip(raw[0], raw[1]):
kernel_config[k] = v
if raw:
for k, v in zip(raw[0], raw[1]):
kernel_config[k] = v
return kernel_config