+ Fix broken unit tests

This commit is contained in:
wmayer
2014-02-25 15:20:33 +01:00
parent 4b0b483892
commit f0d8650c3c
8 changed files with 28 additions and 20 deletions

View File

@@ -88,7 +88,7 @@ int QuantityPy::PyInit(PyObject* args, PyObject* kwd)
try {
*self = Quantity::parse(QString::fromLatin1(string));
}catch(const Base::Exception& e) {
PyErr_SetString(PyExc_ImportError, e.what());
PyErr_SetString(PyExc_ValueError, e.what());
return-1;
}