forked from LBRYCommunity/lbry-sdk
Merge pull request #3303 from keikari/patch-1
Minor fix suggestion for issue #3240
This commit is contained in:
commit
07e7087a09
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ class SourceManager:
|
|||
else:
|
||||
streams = list(self._sources.values())
|
||||
if sort_by:
|
||||
streams.sort(key=lambda s: getattr(s, sort_by))
|
||||
streams.sort(key=lambda s: getattr(s, sort_by) or "")
|
||||
if reverse:
|
||||
streams.reverse()
|
||||
return streams
|
||||
|
|
Loading…
Reference in a new issue