Opened 12 years ago

Closed 11 years ago

Last modified 10 years ago

#2221 closed bug (Fixed)

Addtorrentdialog KeyError: download_location exception with new torrent file

Reported by: bvasiliev Owned by:
Priority: minor Milestone: 1.3.7
Component: GTK UI Version: 1.3.5
Keywords: gtkui, daemon Cc:


Cold starting Deluge in the daemon configuration through the gkt interface with the a new torrent file causes an error when adding a file from the queue.

How to reproduce:

  1. Enable the daemon configuration (classic mode disable);
  2. Verify that the deluged is not running;
  3. Run the deluge-gtk with a new torrent file:
→ deluge-gtk ./t.torrent                         
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/deluge/ui/gtkui/", line 291, in _on_torrent_changed
    self.update_torrent_options(model.get_value(row, 0))
  File "/usr/lib/python2.7/dist-packages/deluge/ui/gtkui/", line 361, in update_torrent_options
  File "/usr/lib/python2.7/dist-packages/deluge/ui/gtkui/", line 458, in set_default_options
KeyError: 'download_location'
[ERROR   ] 23:21:48 component:118 [Failure instance: Traceback: <type 'exceptions.KeyError'>: 'download_location'
--- <exception caught here> ---

Change History (6)

comment:1 Changed 12 years ago by Cas

  • Status changed from new to pending

I cannot replicate and the fact that it is opening the addtorrentdialog suggests that it is connected to the daemon. If you can test with a clean config please.

Also make sure that deluge-gtk is restarted when enabling/disabling classic mode, this will be fixed in next release so cannot be done accidentally.

comment:2 Changed 12 years ago by Cas

  • Resolution set to worksforme
  • Status changed from pending to closed

comment:3 Changed 11 years ago by Cas

  • Resolution worksforme deleted
  • Status changed from closed to reopened

This is clearly an ongoing bug as it has been reported on Ubuntu and Fedora but there appears to be no way for me to replicate it.

comment:4 Changed 11 years ago by Cas

  • Summary changed from deluge-gtk caught exception at coldstart with a new torrent file in daemon configuration to Addtorrentdialog KeyError: download_location exception with new torrent file

comment:5 Changed 11 years ago by Cas

  • Milestone changed from 1.3.x to 1.3.7
  • Resolution set to fixed
  • Status changed from reopened to closed

Fixed in 1.3-stable: 686fb3184

Although doesn't explain why the default value for download_location does not exist, this fix will prevent the KeyError? occurring and download_location will be simply set to None.

comment:6 Changed 10 years ago by Cas

Reverted that non-fix, see #2496

Note: See TracTickets for help on using tickets.