Opened 11 years ago

Closed 11 years ago

#2283 closed bug (Fixed)

KeyError in sessionproxy get_torrent_status

Reported by: Cas Owned by:
Priority: minor Milestone: 1.3.6
Component: Unknown Version: 1.3.5
Keywords: Cc:


Forwarded from Fedora Bug tracker:

Truncated backtrace: 'name'

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/deluge/ui/gtkui/", line 557, in on_selection_changed
  File "/usr/lib/python2.7/site-packages/deluge/ui/gtkui/", line 367, in update
  File "/usr/lib/python2.7/site-packages/deluge/ui/gtkui/", line 85, in update
    session.get_torrent_status(selected, status_keys).addCallback(self._on_get_torrent_status)
  File "/usr/lib/python2.7/site-packages/deluge/ui/", line 132, in get_torrent_status
    if time.time() - self.cache_times[torrent_id][key] > self.cache_time:
KeyError: 'name'

Local variables in innermost frame:
keys: ['name', 'total_size', 'num_files', 'tracker', 'save_path', 'message', 'hash', 'comment']
torrent_id: 'd5295fcca17268ee8d92ba067a0830c3a4d9fca2'
self: <deluge.ui.sessionproxy.SessionProxy object at 0x2bcb590>
keys_to_get: []
key: 'name'

This is likely to be a race condition between a the on_status callback when a torrent is added and the get_torrent_status call.

Change History (1)

comment:1 Changed 11 years ago by Cas

  • Milestone changed from 1.3.x to 1.3.6
  • Resolution set to fixed
  • Status changed from new to closed

Fixed 1.3-stable: 9856f973230ce

Note: See TracTickets for help on using tickets.