summaryrefslogtreecommitdiffstats
path: root/bindings
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-12-14 01:52:31 +0100
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-12-14 01:52:31 +0100
commit762f88cd3790b28ea3594cdfc95e395b1e6e7cc4 (patch)
treee6d03316c4e9d39c8f57179422f7a0e717f7a471 /bindings
parentf7dbcbb2b400d4c9386dd94a32a610048e1e2cc5 (diff)
downloadlasso-762f88cd3790b28ea3594cdfc95e395b1e6e7cc4.tar.gz
lasso-762f88cd3790b28ea3594cdfc95e395b1e6e7cc4.tar.xz
lasso-762f88cd3790b28ea3594cdfc95e395b1e6e7cc4.zip
[bindings python] make constructor failure raise a lasso.Error exception
Diffstat (limited to 'bindings')
-rw-r--r--bindings/python/lang.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bindings/python/lang.py b/bindings/python/lang.py
index 8be92e39..67c0cf91 100644
--- a/bindings/python/lang.py
+++ b/bindings/python/lang.py
@@ -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: