Lines 153-159
Link Here
|
153 |
, std::vector<char>& rd, std::list<std::string>& string_storage) |
153 |
, std::vector<char>& rd, std::list<std::string>& string_storage) |
154 |
{ |
154 |
{ |
155 |
// torrent_info objects are always held by an intrusive_ptr in the python binding |
155 |
// torrent_info objects are always held by an intrusive_ptr in the python binding |
156 |
if (params.has_key("ti")) |
156 |
if (params.has_key("ti") && !params.get("ti").is_none()) |
157 |
p.ti = extract<intrusive_ptr<torrent_info> >(params["ti"]); |
157 |
p.ti = extract<intrusive_ptr<torrent_info> >(params["ti"]); |
158 |
|
158 |
|
159 |
if (params.has_key("info_hash")) |
159 |
if (params.has_key("info_hash")) |