Crash when scanning library: TypeError: '<' not supported
Environment
- Lollypop version: 1.3.2
- GTK+ version: 3.24.20
- Operating system: Archlinux x64
Bug
There seems to be a case which is not handled when scanning the media and retrieving dates on them:
[INFO] 2020-06-27 15:24:50 lollypop.collection_scanner::__get_objects_for_uris: execution time 0:1.291694
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/lollypop/view_albums_box.py", line 189, in _sort_func
return child1.data.year < child2.data.year
TypeError: '<' not supported between instances of 'int' and 'NoneType'
It crashes every time I click the "Update music" in the menu, a few seconds later.