[OE-core] [PATCH] lib/qa.py: raise ValueError if file isn't an ELF
Phil Blundell
pb at pbcl.net
Mon Feb 15 23:30:49 UTC 2016
On Mon, 2016-02-15 at 17:50 +0000, Ross Burton wrote:
> Instead of raising a generic Exception that can't be handled specifically, raise
> a ValueError.
If what you want is an exception to mean "this file isn't actually ELF",
how about defining a new exception class InvalidElfError or something
and raising that? ValueError still seems a bit vague for what you are
trying to do.
p.
More information about the Openembedded-core
mailing list