diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oe/qa.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/lib/oe/qa.py b/meta/lib/oe/qa.py index d5cdaa0fcd..21fb9977ce 100644 --- a/meta/lib/oe/qa.py +++ b/meta/lib/oe/qa.py @@ -31,6 +31,9 @@ class ELFFile: self.objdump_output = {} def open(self): + if not os.path.isfile(self.name): + raise Exception("File is not a normal file") + self.file = file(self.name, "r") self.data = self.file.read(ELFFile.EI_NIDENT+4) |