Layers: Fix uncaught exception in Elf layer

This commit is contained in:
Mike Auty
2023-01-09 21:32:19 +00:00
parent cd89e39ee0
commit a1eeecf6de
+5 -1
View File
@@ -119,4 +119,8 @@ class Elf64Stacker(interfaces.automagic.StackerLayerInterface):
interfaces.configuration.path_join(new_name, "base_layer")
] = layer_name
return Elf64Layer(context, new_name, new_name)
try:
return Elf64Layer(context, new_name, new_name)
except ElfFormatException as excp:
vollog.log(constants.LOGLEVEL_VVVV, f"Exception: {excp}")
return None