[Python binding] do not throw lasso.Error for python exceptions
This commit is contained in:
parent
11ac1e148a
commit
eca31dd63c
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue