mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
[#3250|Console] Fix errors dispaying magnets with no files
Trying to display the files for magnet that has no metadata and thus no files resulted in `'NoneType' object is not iterable` errors. Only call file prio update method if we have a list of files.
This commit is contained in:
parent
76b89a7943
commit
653f80eac8
1 changed files with 1 additions and 1 deletions
|
@ -212,7 +212,7 @@ class TorrentDetail(BaseMode, PopupsHandler):
|
||||||
if self.file_dict[i][6] != prio:
|
if self.file_dict[i][6] != prio:
|
||||||
need_prio_update = True
|
need_prio_update = True
|
||||||
self.file_dict[i][6] = prio
|
self.file_dict[i][6] = prio
|
||||||
if need_prio_update:
|
if need_prio_update and self.file_list:
|
||||||
self.__fill_prio(self.file_list)
|
self.__fill_prio(self.file_list)
|
||||||
del state['file_progress']
|
del state['file_progress']
|
||||||
del state['file_priorities']
|
del state['file_priorities']
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue