]> code.ossystems Code Review - openembedded-core.git/commit
metadata_scm: Fix crash due to uncaught python exception
authorMerten Sach <msach@mailbox.tu-berlin.de>
Sat, 22 Nov 2014 21:54:55 +0000 (22:54 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 31 Dec 2014 10:17:34 +0000 (10:17 +0000)
commit4a3f37f7d004b196b9caeb558d3461452dd85edc
treef5763b1b43685bc888575527d76c7241e963ae58
parentb143340700961f916e4a21da42b859ec014dd366
metadata_scm: Fix crash due to uncaught python exception

Function base_get_metadata_svn_revision was crashing due to an uncaught
IndexError exception.

The except notation without parentheses is legacy syntax. It is the equivalent
to 'except IOError as IndexError' which is not what we want here.

The change catches both exceptions.

(From OE-Core rev: 33bea949bae54ddc89aa83cf07d7b1ee62e2b393)

Signed-off-by: Merten Sach <msach@mailbox.tu-berlin.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/classes/metadata_scm.bbclass