Crash on open: sort_by_ctime_dec(): sorting.py:62:sort_by_ctime_dec:TypeError: '<' not supported between instances of 'NoneType' and 'NoneType'
Description of problem:
- Start PasswordSafe.
- Open Safe, enter the password to unlock.
- PasswordSafe immediately crashes.
Version-Release number of selected component:
- 5.0
- From git - commit: 4c61da7a
Additional info:
reporter: libreport-2.13.1
cgroup: 0::/user.slice/user-1000.slice/user@1000.service/gnome-launched-org.gnome.PasswordSafe.desktop-14747.scope
cmdline: /usr/bin/python3 /usr/bin/gnome-passwordsafe
crash_function: sort_by_ctime_dec
exception_type: TypeError
executable: /usr/bin/gnome-passwordsafe
interpreter: python3-3.8.7-2.fc32.x86_64
kernel: 5.10.16-100.fc32.x86_64
runlevel: N 5
type: Python3
uid: 1000
Truncated backtrace:
sorting.py:62:sort_by_ctime_dec:TypeError: '<' not supported between instances of 'NoneType' and 'NoneType'
Traceback (most recent call last):
File "/usr/lib64/python3.8/site-packages/gi/overrides/Gio.py", line 470, in wrap
return func(a, b, *user_data)
File "/usr/lib/python3.8/site-packages/passwordsafe/sorting.py", line 62, in sort_by_ctime_dec
if ele1.ctime < ele2.ctime:
TypeError: '<' not supported between instances of 'NoneType' and 'NoneType'
Local variables in innermost frame:
ele1: <safe_element.SafeGroup object at 0x7f67a0a9c500 (passwordsafe+safe_element+SafeGroup at 0x5627565d3d00)>
ele2: <safe_element.SafeGroup object at 0x7f67a0a9c640 (passwordsafe+safe_element+SafeGroup at 0x5627565d3ce0)>
OS: Fedora 33
Downstream bug report: https://bugzilla.redhat.com/show_bug.cgi?id=1931935