forked from premiere/premiere-libtorrent
fix python bindings build for older versions of boost
This commit is contained in:
parent
1c2b7471cb
commit
aca32290c0
|
@ -151,7 +151,7 @@ namespace
|
|||
, std::vector<char>& rd, std::list<std::string>& string_storage)
|
||||
{
|
||||
// torrent_info objects are always held by an intrusive_ptr in the python binding
|
||||
if (params.has_key("ti") && !params.get("ti").is_none())
|
||||
if (params.has_key("ti") && params.get("ti") != boost::python::object())
|
||||
p.ti = extract<intrusive_ptr<torrent_info> >(params["ti"]);
|
||||
|
||||
if (params.has_key("info_hash"))
|
||||
|
|
Loading…
Reference in New Issue