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 'NoneType' and 'NoneType' #1068

Closed
SqAtx opened this issue Mar 22, 2024 · 2 comments · Fixed by #1085
Closed

TypeError: '>' not supported between instances of 'NoneType' and 'NoneType' #1068

SqAtx opened this issue Mar 22, 2024 · 2 comments · Fixed by #1085

Comments

@SqAtx
Copy link
Contributor

SqAtx commented Mar 22, 2024

(this report is a bit rushed because it happened while I was in the middle of something)

Not 100% sure what I was doing.

I clicked on a tag, created an issue (tag got added automatically), set it due to "soon", then toggled between Open and Actionable because the sidebar was showing 3 issues for that tag, but the Actionable pane showed 2 and the Open pane showed 0 (not even the one I just created).

Then I got the "GTG has crashed dialog" but clicking on the "Details" link did not work (might be a separate issue there). I found this in the logs:

Gtk-Message: 10:32:20.575: GtkDialog mapped without a transient parent. This is discouraged.
Traceback (most recent call last):
  File "<< path to GTG >>/.local_build/install/lib/python3/dist-packages/GTG/core/sorters.py", line 73, in do_compare
    if first > second:
       ^^^^^^^^^^^^^^
TypeError: '>' not supported between instances of 'NoneType' and 'NoneType'
@gycsaba96
Copy link
Contributor

I managed to reproduce the crash:

  1. Add a few tasks without a due date using the quick add line.
  2. Sort them by a due date using the "Change Sorting" button.
  3. Observe the crash.
  4. (!) If you reopen GTG, the newly created tasks are no longer there.

gycsaba96 added a commit to gycsaba96/gtg that referenced this issue Apr 13, 2024
In some cases, None was used instead of Date.no_date(),
which caused a crash when sorting the task list.

This fixes GitHub issue getting-things-gnome#1068
diegogangl pushed a commit that referenced this issue Apr 13, 2024
In some cases, None was used instead of Date.no_date(),
which caused a crash when sorting the task list.

This fixes GitHub issue #1068
@SqAtx
Copy link
Contributor Author

SqAtx commented Apr 14, 2024

Awesome, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants