diff options
| author | Frederic Peters <fpeters@entrouvert.com> | 2008-04-29 12:08:23 +0000 |
|---|---|---|
| committer | Frederic Peters <fpeters@entrouvert.com> | 2008-04-29 12:08:23 +0000 |
| commit | 3386a3e6beabcd4ab374d20fecf117aead9833fa (patch) | |
| tree | 7679d20b0705b239eeae9299b848b6b408d6c526 | |
| parent | d4f82ebb242f63966e641d755ce29b46b384d686 (diff) | |
| download | lasso-3386a3e6beabcd4ab374d20fecf117aead9833fa.tar.gz lasso-3386a3e6beabcd4ab374d20fecf117aead9833fa.tar.xz lasso-3386a3e6beabcd4ab374d20fecf117aead9833fa.zip | |
[project @ fpeters@0d.be-20080321174837-2fneubl3xhlol08w]
always raise an exception, to be compatible with previous behaviour
Original author: Frederic Peters <fpeters@0d.be>
Date: 2008-03-21 18:48:37.002000+01:00
| -rw-r--r-- | bindings/lang_python.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/bindings/lang_python.py b/bindings/lang_python.py index 91b7f109..116bc7e5 100644 --- a/bindings/lang_python.py +++ b/bindings/lang_python.py @@ -449,10 +449,7 @@ StringDict = dict function_name, c_args) print >> fd, ' if rc == 0:' print >> fd, ' return' - print >> fd, ' elif rc > 0:' # recoverable error - print >> fd, ' return rc' - print >> fd, ' elif rc < 0:' # unrecoverable error - print >> fd, ' raise Error.raise_on_rc(rc)' + print >> fd, ' raise Error.raise_on_rc(rc)' elif self.is_pygobject(m.return_type): print >> fd, ' return cptrToPy(_lasso.%s(self._cptr%s))' % ( function_name, c_args) |
