Use TypeError in invalidArguments

This commit is contained in:
Adam Paszke
2016-12-27 17:22:51 +01:00
parent bef70aa377
commit 5497b1babb
3 changed files with 5 additions and 5 deletions

View File

@ -281,7 +281,7 @@ void THPUtils_invalidArguments(PyObject *given_args,
}
}
PyErr_SetString(PyExc_ValueError, error_msg.c_str());
PyErr_SetString(PyExc_TypeError, error_msg.c_str());
}