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 Aug 31, 2024
1 parent 8867da9 commit 1913169
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 t_name in tid:
names.append(self.console.get_torrent_name(t_name))

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

0 comments on commit 1913169

Please sign in to comment.