Use varargs version of Error:all() and Error::one() where applicable
This commit is contained in:
@ -382,11 +382,11 @@ void * PairPython::get_member_function(const char * name)
|
||||
PyObject * py_mfunc = PyObject_GetAttrString(py_pair_instance, name);
|
||||
if (!py_mfunc) {
|
||||
PyUtils::Print_Errors();
|
||||
error->all(FLERR, fmt::format("Could not find '{}' method'", name));
|
||||
error->all(FLERR,"Could not find '{}' method'", name);
|
||||
}
|
||||
if (!PyCallable_Check(py_mfunc)) {
|
||||
PyUtils::Print_Errors();
|
||||
error->all(FLERR, fmt::format("Python '{}' is not callable", name));
|
||||
error->all(FLERR,"Python '{}' is not callable", name);
|
||||
}
|
||||
return py_mfunc;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user