From 762f88cd3790b28ea3594cdfc95e395b1e6e7cc4 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Tue, 14 Dec 2010 01:52:31 +0100 Subject: [PATCH] [bindings python] make constructor failure raise a lasso.Error exception --- bindings/python/lang.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: