attempt to fix deluge magnet link issue

This commit is contained in:
Arvid Norberg 2012-04-29 00:51:05 +00:00
parent e73e96b04c
commit 6ecf54996c
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,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"))
if (params.has_key("ti") && !params.get("ti").is_none())
p.ti = extract<intrusive_ptr<torrent_info> >(params["ti"]);
if (params.has_key("info_hash"))