+ Fix broken unit tests

This commit is contained in:
wmayer
2014-02-25 15:24:10 +01:00
parent 9fc0f0d76b
commit 75e5d5f3ac
8 changed files with 28 additions and 20 deletions
+1 -1
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;
}