Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: '<' not supported between instances of 'int' and 'str' #2713

Closed
lazka opened this issue Jan 12, 2018 · 0 comments
Closed

TypeError: '<' not supported between instances of 'int' and 'str' #2713

lazka opened this issue Jan 12, 2018 · 0 comments
Labels
Milestone

Comments

@lazka
Copy link
Member

@lazka lazka commented Jan 12, 2018

https://sentry.io/quodlibet/quodlibet/issues/432954431/

TypeError: '<' not supported between instances of 'int' and 'str'
  File "quodlibet/qltk/quodlibetwindow.py", line 1451, in __browser_cb
    self.songlist.set_songs(songs, sorted)
  File "quodlibet/qltk/songlist.py", line 811, in set_songs
    self._sort_songs(songs)
  File "quodlibet/qltk/songlist.py", line 764, in _sort_songs
    songs.sort(key=sort_func, reverse=reverse)

TypeError: '<' not supported between instances of 'int' and 'str'
@lazka lazka added the sentry label Jan 12, 2018
@lazka lazka added this to the 4.0.1 milestone Jan 12, 2018
@lazka lazka closed this in 222d81c Jan 13, 2018
lazka added a commit that referenced this issue Jan 13, 2018
…ixes #2713

Always pass a default to __call__ so we always get the same type back for sorting.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant