diff --git a/include/boost/python/raw_function.hpp b/include/boost/python/raw_function.hpp index 3a28d127..434d0389 100755 --- a/include/boost/python/raw_function.hpp +++ b/include/boost/python/raw_function.hpp @@ -25,7 +25,10 @@ namespace detail { return incref( object( - f(tuple(borrowed_reference(args)), dict(borrowed_reference(keywords))) + f( + tuple(borrowed_reference(args)) + , keywords ? dict(borrowed_reference(keywords)) : dict() + ) ).ptr() ); }