diff options
Diffstat (limited to 'meta/lib/oe/qa.py')
-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: | |||
31 | self.objdump_output = {} | 31 | self.objdump_output = {} |
32 | 32 | ||
33 | def open(self): | 33 | def open(self): |
34 | if not os.path.isfile(self.name): | ||
35 | raise Exception("File is not a normal file") | ||
36 | |||
34 | self.file = file(self.name, "r") | 37 | self.file = file(self.name, "r") |
35 | self.data = self.file.read(ELFFile.EI_NIDENT+4) | 38 | self.data = self.file.read(ELFFile.EI_NIDENT+4) |
36 | 39 | ||