mirror of
https://github.com/codex-storage/deluge.git
synced 2025-03-01 03:20:44 +00:00
Fixed an error that arised when no torrents matched current filter
This commit is contained in:
parent
4a58e339cb
commit
18091c5ad6
@ -499,6 +499,9 @@ class AllTorrents(BaseMode, component.Component):
|
||||
def _sort_torrents(self, state):
|
||||
"sorts by primary and secondary sort fields"
|
||||
|
||||
if not state:
|
||||
return {}
|
||||
|
||||
s_primary = self.config["sort_primary"]
|
||||
s_secondary = self.config["sort_secondary"]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user