forked from LBRYCommunity/lbry-sdk
Fix suggestion for issue #3240
L135: If `getattr()` returns `None`, use `""` instead to avoid error in issue #3240
This commit is contained in:
parent
eba0c9be34
commit
d9413039ec
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