From 4c1fe0cbcb98b0a69ad5b3a04432055d773ee4ba Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Wed, 24 Feb 2016 13:31:40 +0000 Subject: lib/oe/qa: add explicit exception for 'file isn't an ELF' Signed-off-by: Ross Burton --- meta/classes/uninative.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/classes/uninative.bbclass') diff --git a/meta/classes/uninative.bbclass b/meta/classes/uninative.bbclass index b14cec065e..7e225e6f15 100644 --- a/meta/classes/uninative.bbclass +++ b/meta/classes/uninative.bbclass @@ -80,7 +80,7 @@ python uninative_changeinterp () { elf = oe.qa.ELFFile(f) try: elf.open() - except ValueError: + except oe.qa.NotELFFileError: continue #bb.warn("patchelf-uninative --set-interpreter %s %s" % (d.getVar("UNINATIVE_LOADER", True), f)) -- cgit 1.2.3-korg