diff --git a/deluge/ui/console/modes/torrentdetail.py b/deluge/ui/console/modes/torrentdetail.py index 0bca6a85a..f115199d0 100644 --- a/deluge/ui/console/modes/torrentdetail.py +++ b/deluge/ui/console/modes/torrentdetail.py @@ -153,7 +153,7 @@ class TorrentDetail(BaseMode, component.Component): log.debug("got state") if state.get("files"): - self.full_names = {x['index']:x['path'] for x in state["files"]} + self.full_names = dict([ (x['index'], x['path']) for x in state["files"]]) need_prio_update = False if not self.file_list: