python bindings: also raise an exception on negative isl_stat
commit641d5905dc1eccdbbb17e5f6bedf6bf136ab11b8
authorSven Verdoolaege <sven.verdoolaege@gmail.com>
Wed, 8 Aug 2018 08:29:29 +0000 (8 10:29 +0200)
committerSven Verdoolaege <sven.verdoolaege@gmail.com>
Thu, 6 Sep 2018 14:56:53 +0000 (6 16:56 +0200)
treec1c35aba9d6acae38edfd0125165aa4392e64836
parent7a99fc4e4a855f0b9b8bdf9d11a2f279aa51bb00
python bindings: also raise an exception on negative isl_stat

The only currently exported functions returning isl_stat
are the "foreach" functions.  If such a function returns
with an error condition, then it is usually due to an error
that occurred inside the callback function and this case
is already handled.  However, the error could also occur
outside the callback function and then an exception needs
to be raised as well.  On the other hand, there is no need
to return anything from methods generated from such functions.

Signed-off-by: Sven Verdoolaege <sven.verdoolaege@gmail.com>
interface/python.cc