mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 19:54:18 +02:00
Better on #1120 et al. -- raise on exception cleanly.
This commit is contained in:
parent
e349723e68
commit
aeb88b747d
1 changed files with 1 additions and 0 deletions
|
|
@ -187,6 +187,7 @@ decompress(PyObject *self, PyObject *args)
|
|||
|
||||
if (err != MSPACK_ERR_OK) {
|
||||
Py_DECREF(retval);
|
||||
retval = NULL;
|
||||
PyErr_SetString(LzxError, "LZX decompression failed");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue