[Python binding] do not throw lasso.Error for python exceptions

This commit is contained in:
Benjamin Dauvergne 2010-07-05 21:24:08 +00:00
parent 11ac1e148a
commit eca31dd63c
1 changed files with 1 additions and 1 deletions

View File

@ -335,7 +335,7 @@ if WSF_SUPPORT:
print >> fd, ' self._cptr = _lasso.%s(%s)' % (
m.name[6:], c_args)
print >> fd, ' if self._cptr is None:'
print >> fd, ' raise Error(\'failed to create object\')'
print >> fd, ' raise Exception(\'failed to create object\')'
print >> fd, ''
for m in self.binding_data.functions: