Opened 13 years ago
Closed 13 years ago
#2283 closed bug (Fixed)
KeyError in sessionproxy get_torrent_status
| Reported by: | Calum | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.3.6 |
| Component: | Unknown | Version: | 1.3.5 |
| Keywords: | Cc: |
Description
Forwarded from Fedora Bug tracker: https://bugzilla.redhat.com/show_bug.cgi?id=909018
Truncated backtrace:
sessionproxy.py:132:get_torrent_status:KeyError: 'name'
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/deluge/ui/gtkui/torrentview.py", line 557, in on_selection_changed
component.get("TorrentDetails").update()
File "/usr/lib/python2.7/site-packages/deluge/ui/gtkui/torrentdetails.py", line 367, in update
self.tabs[name].update()
File "/usr/lib/python2.7/site-packages/deluge/ui/gtkui/details_tab.py", 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/sessionproxy.py", 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 by , 13 years ago
| Milestone: | 1.3.x → 1.3.6 |
|---|---|
| Resolution: | → fixed |
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.



Fixed 1.3-stable: 9856f973230ce