Public bug reported:

DistroRelease: Ubuntu 15.04
Package: deluge-common 1.3.11-0ubuntu2
Architecture: amd64

I was trying to write my own plugin, which made a call to
deluge.core.Torrent.set_trackers() with the 'trackers' parameter set to
None.  From the source code, you can see that what's supposed to happen
is the current list of trackers is refreshed, however because the distro
release uses a more recent version of libtorrent, the function call
fails with an "AttributeError: 'dict' object has no attribute 'url'"
exception.

This is related to the upstream bug #2223: http://dev.deluge-
torrent.org/ticket/2223.  It was fixed in the Torrent constructor, but
not in set_trackers().

I have made a patch which fixes this bug.  I have tried logging this bug
upstream as well, but I've had no luck in creating an account at the
above site.  Should you accept my patch, can you please forward it
upstream also?

Thanks.

** Affects: deluge (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "Fix-set_trackers-when-trackers-None.patch"
   
https://bugs.launchpad.net/bugs/1487704/+attachment/4450735/+files/Fix-set_trackers-when-trackers-None.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1487704

Title:
  Call to deluge.core.Torrent.set_trackers() fails when trackers
  parameter is None

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/deluge/+bug/1487704/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to