author | Alberto Bertogli
<albertito@gmail.com> 2004-10-10 23:59:04 UTC |
committer | Alberto Bertogli
<albertito@gmail.com> 2007-07-15 13:25:37 UTC |
parent | 7b271929c687363d63b09cbe9ebdc630326cb326 |
bindings/python/libjio.c | +2 | -0 |
diff --git a/bindings/python/libjio.c b/bindings/python/libjio.c index 275b50d..103f293 100644 --- a/bindings/python/libjio.c +++ b/bindings/python/libjio.c @@ -381,6 +381,8 @@ static PyObject *jt_add(jtransobject *tp, PyObject *args) return NULL; rv = jtrans_add(tp->ts, buf, len, offset); + if (rv == 0) + return PyErr_SetFromErrno(PyExc_IOError); return PyLong_FromLong(rv); }