]> 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, 3 Dec 2014 12:22:41 +0000 (12:22 +0000)
commit33bea949bae54ddc89aa83cf07d7b1ee62e2b393
tree1f0d83b4e922923e6d8765a82f931e30e91abae7
parent36d94ed631f1a753482282fced7d3b7505d5e03d
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.

Signed-off-by: Merten Sach <msach@mailbox.tu-berlin.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/metadata_scm.bbclass