[bindings python] make constructor failure raise a lasso.Error exception

This commit is contained in:
Benjamin Dauvergne 2010-12-14 01:52:31 +01:00
parent f7dbcbb2b4
commit 762f88cd37
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 Exception(\'failed to create object\')'
print >> fd, ' raise Error(\'failed to create object\')'
print >> fd, ''
for m in self.binding_data.functions: