scripts: build: check_init_priorities.py: Add missing raise for error

An error was not raised.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
Pieter De Gendt 2024-04-30 12:12:04 +02:00 committed by Carles Cufí
parent 69fa7dc268
commit 65fb99a844

View file

@ -172,7 +172,7 @@ class ZephyrInitLevels:
elif elfclass == 64:
ptrsize = 8
else:
ValueError(f"Unknown pointer size for ELF class f{elfclass}")
raise ValueError(f"Unknown pointer size for ELF class f{elfclass}")
section = self._elf.get_section(shidx)
start = section.header.sh_addr