Skip to content

Commit

Permalink
[Console] Fix 'move' command hanging when done
Browse files Browse the repository at this point in the history
Console.get_torrent_name() expects string, but was given list from console.match_torrent(), so NoneType breaking join() in move message.
  • Loading branch information
mhertz committed Sep 2, 2024
1 parent 8867da9 commit 3924972
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deluge/ui/console/cmdline/commands/move.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ def handle(self, options):
for t_id in options.torrent_ids:
tid = self.console.match_torrent(t_id)
ids.extend(tid)
names.append(self.console.get_torrent_name(tid))
for name in tid:
names.append(self.console.get_torrent_name(name))

def on_move(res):
msg = 'Moved "{}" to {}'.format(', '.join(names), options.path)
Expand Down

0 comments on commit 3924972

Please sign in to comment.