Fixed an error that arised when no torrents matched current filter

This commit is contained in:
Asmageddon 2012-05-30 21:06:50 +02:00
parent 4a58e339cb
commit 18091c5ad6
1 changed files with 3 additions and 0 deletions

View File

@ -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"]