Merge pull request #3303 from keikari/patch-1

Minor fix suggestion for issue #3240
This commit is contained in:
Alex Grin 2021-05-18 15:23:56 -04:00 committed by GitHub
commit 07e7087a09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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