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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user