diff options
author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-12-14 01:52:31 +0100 |
---|---|---|
committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-12-14 01:52:31 +0100 |
commit | 762f88cd3790b28ea3594cdfc95e395b1e6e7cc4 (patch) | |
tree | e6d03316c4e9d39c8f57179422f7a0e717f7a471 /bindings/python/lang.py | |
parent | f7dbcbb2b400d4c9386dd94a32a610048e1e2cc5 (diff) | |
download | lasso-762f88cd3790b28ea3594cdfc95e395b1e6e7cc4.tar.gz lasso-762f88cd3790b28ea3594cdfc95e395b1e6e7cc4.tar.xz lasso-762f88cd3790b28ea3594cdfc95e395b1e6e7cc4.zip |
[bindings python] make constructor failure raise a lasso.Error exception
Diffstat (limited to 'bindings/python/lang.py')
-rw-r--r-- | bindings/python/lang.py | 2 |
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: |