mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
...
This commit is contained in:
parent
e165e24378
commit
5a1bad26a7
@ -14,7 +14,7 @@
|
|||||||
sipRes = new QImage(ans); \
|
sipRes = new QImage(ans); \
|
||||||
} catch (std::out_of_range &exc) { PyErr_SetString(PyExc_ValueError, exc.what()); return NULL; \
|
} catch (std::out_of_range &exc) { PyErr_SetString(PyExc_ValueError, exc.what()); return NULL; \
|
||||||
} catch (std::bad_alloc &) { PyErr_NoMemory(); return NULL; \
|
} catch (std::bad_alloc &) { PyErr_NoMemory(); return NULL; \
|
||||||
} catch (std::exception &exc) { PyErr_SetString(PyExc_RuntimeError, exc.what()); return NULL; \
|
} catch (std::exception &exc) { PyErr_SetString(PyExc_Exception, exc.what()); return NULL; \
|
||||||
} catch (...) { PyErr_SetString(PyExc_RuntimeError, "unknown error"); return NULL;}
|
} catch (...) { PyErr_SetString(PyExc_RuntimeError, "unknown error"); return NULL;}
|
||||||
%End
|
%End
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user