fix python bindings build for older versions of boost

This commit is contained in:
Arvid Norberg 2012-07-03 00:59:33 +00:00
parent 1c2b7471cb
commit aca32290c0
1 changed files with 1 additions and 1 deletions

View File

@ -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"))