2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-13 12:22:17 +00:00

Better diagnostics when trying to import non-callable Python

object to Jam.


[SVN r40006]
This commit is contained in:
Vladimir Prus
2007-10-14 09:09:41 +00:00
parent 1eea3e4103
commit cb7f29fcd3

View File

@@ -1691,7 +1691,11 @@ bjam_import_rule(PyObject* self, PyObject* args)
return NULL;
if (!PyCallable_Check(func))
{
PyErr_SetString(PyExc_RuntimeError,
"Non-callable object passed to bjam.import_rule");
return NULL;
}
m = bindmodule(module);
r = bindrule(rule, m);