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…
Reference in New Issue