Opened 14 years ago

Closed 14 years ago

Last modified 7 years ago

#1202 closed bug (Fixed)

AttributeError: Torrent instance has no attribute 'state'

Reported by: simonbcn Owned by:
Priority: major Milestone: 2.x
Component: Core Version: 1.2.3
Keywords: Cc:


deluge 1.2.3 + libtorrent 0.15
Compiled from sources

It shows, in log, this error several times:

[ERROR   ] 02:52:14 rpcserver:286 Exception calling RPC request: Torrent instance has no attribute 'state'
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/deluge-1.2.1-py2.6.egg/deluge/core/", line 281, in dispatch
    ret = self.factory.methods[method](*args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/deluge-1.2.1-py2.6.egg/deluge/core/", line 430, in get_torrents_status
    status_dict[torrent_id] = self.get_torrent_status(torrent_id, keys)
  File "/usr/local/lib/python2.6/dist-packages/deluge-1.2.1-py2.6.egg/deluge/core/", line 412, in get_torrent_status
    status = self.torrentmanager[torrent_id].get_status(keys)
  File "/usr/local/lib/python2.6/dist-packages/deluge-1.2.1-py2.6.egg/deluge/core/", line 574, in get_status
    "state": self.state,
AttributeError: Torrent instance has no attribute 'state'

Change History (6)

comment:1 by andar, 14 years ago

Resolution: fixed
Status: newclosed

This could be a problem if lt 0.15 introduced a new state. I put a fix for this in master so that it will set self.state even in this case.

comment:2 by simonbcn, 14 years ago

If I download the last version from git (git clone git://, Will this fix be in that version?

comment:3 by andar, 14 years ago

Yes, in the master branch.

comment:4 by simonbcn, 14 years ago

The problem is that 1.30 is unstable:
I come back to v1.2.3.
Please, can you say to me the file/s that you have fixed for I'll change it in 1.2.3 version?

comment:5 by anachron, 14 years ago

simonbcn: You can see the change andar did here:

I have successfully applied it to v1.2.3

comment:6 by Calum, 7 years ago

Milestone: 2.0.x2.x

Milestone renamed

Note: See TracTickets for help on using tickets.