Skip to content
This repository has been archived by the owner on Jul 19, 2022. It is now read-only.

Commit

Permalink
blockbuilder: pass pmt to python message handler
Browse files Browse the repository at this point in the history
Signed-off-by: Josh Morman <[email protected]>
  • Loading branch information
mormj committed Jun 23, 2022
1 parent fde3b8c commit 33d336a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/blockbuilder/templates/blockname_pyshell.h.j2
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public:
{
py::gil_scoped_acquire acquire;
if (py::hasattr(this->pb_detail()->handle(), "{{"handle_msg_" + port['id']}}")) {
py::object ret = this->pb_detail()->handle().attr("{{"handle_msg_" + port['id']}}")();
py::object ret = this->pb_detail()->handle().attr("{{"handle_msg_" + port['id']}}")(msg);
}
else
throw std::runtime_error("Message port handler not found");
Expand Down

0 comments on commit 33d336a

Please sign in to comment.