Merge commit '296f61a' into debian/bookworm

This commit is contained in:
Jason Rhinelander 2022-06-16 15:06:27 -03:00
commit f29b0b6ce4
No known key found for this signature in database
GPG Key ID: C4992CE7A88D4262
1 changed files with 1 additions and 1 deletions

View File

@ -736,7 +736,7 @@ the background).)")
if (auto* bytes = std::get_if<py::bytes>(&conn)) {
if (len(*bytes) != 32)
throw std::logic_error{"Error: send(...) to=pubkey requires 32-byte pubkey"};
conn.emplace<ConnectionID>(*bytes);
conn.emplace<ConnectionID>(static_cast<std::string>(*bytes));
}
bool request = kwargs.contains("request") && kwargs["request"].cast<bool>();