diff options
author | Ross Burton <ross@openedhand.com> | 2007-09-03 10:49:33 +0000 |
---|---|---|
committer | Ross Burton <ross@openedhand.com> | 2007-09-03 10:49:33 +0000 |
commit | 96940234462e2615c85e1b81f641eb85be5be0d4 (patch) | |
tree | dc662ae61c9a4a0f013ee7b29873f98b0ecec8db /meta | |
parent | 263cce7db2f40fe4191472d5e9d4108211547595 (diff) | |
download | openembedded-core-96940234462e2615c85e1b81f641eb85be5be0d4.tar.gz openembedded-core-96940234462e2615c85e1b81f641eb85be5be0d4.tar.bz2 openembedded-core-96940234462e2615c85e1b81f641eb85be5be0d4.zip |
insane.bbclass: don't raise strings, but exceptions
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2679 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/insane.bbclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass index cf74810f3e..fb1d44b6e6 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass @@ -101,7 +101,7 @@ def package_qa_get_elf(path, bits32): def my_assert(expectation, result): if not expectation == result: #print "'%x','%x'" % (ord(expectation), ord(result)) - raise "This does not work as expected" + raise Exception("This does not work as expected") my_assert = staticmethod(my_assert) def __init__(self, name): @@ -124,13 +124,13 @@ def package_qa_get_elf(path, bits32): self.sex = self.data[ELFFile.EI_DATA] if self.sex == chr(ELFFile.ELFDATANONE): - raise "Can't be" + raise Exception("self.sex == ELFDATANONE") elif self.sex == chr(ELFFile.ELFDATA2LSB): self.sex = "<" elif self.sex == chr(ELFFile.ELFDATA2MSB): self.sex = ">" else: - raise "Even more worse" + raise Exception("Unknown self.sex") def osAbi(self): return ord(self.data[ELFFile.EI_OSABI]) |