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

AttributeError: NoneType object has no attribute get_parents when editing a task #1153

Open
jfoll31 opened this issue Nov 9, 2024 · 2 comments
Labels
bug needinfo We need more info to solve the issue, or we can't fix it.

Comments

@jfoll31
Copy link

jfoll31 commented Nov 9, 2024

While simply editing a task I got this message:

  File "/app/lib/python3.9/site-packages/GTG/gtk/editor/taskview.py", line 200, in process
    if self.detect_subtasks(text, start):
  File "/app/lib/python3.9/site-packages/GTG/gtk/editor/taskview.py", line 302, in detect_subtasks
    parents = task.get_parents()
AttributeError: 'NoneType' object has no attribute 'get_parents'

Software versions:

  • Getting Things GNOME! v0.6
  • CPython 3.9.9 (main, Nov 10 2011, 15:00:00) [GCC 11.3.0]
  • GTK 3.24.34, GLib 2.70.5
  • PyGLib 3.42.2, PyGObject 3.42.2
  • Linux-6.8.0-48-generic-x86_64-with-glibc2.33
@nekohayo
Copy link
Member

nekohayo commented Jan 3, 2025

This would need to have much more precise reproduction steps, because I haven't been encountering this issue (in years of using version 0.6) so it certainly does not affect every task. Ideally it should be tested against the git version, too.

@nekohayo nekohayo added bug needinfo We need more info to solve the issue, or we can't fix it. labels Jan 3, 2025
@nekohayo nekohayo changed the title Internal Error AttributeError: 'NoneType' object has no attribute 'get_parents' when editing a task Jan 3, 2025
@nekohayo nekohayo changed the title AttributeError: 'NoneType' object has no attribute 'get_parents' when editing a task AttributeError: NoneType object has no attribute get_parents when editing a task Jan 3, 2025
@nekohayo
Copy link
Member

nekohayo commented Jan 3, 2025

See also #924 in case this is the issue you are experiencing…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug needinfo We need more info to solve the issue, or we can't fix it.
Projects
None yet
Development

No branches or pull requests

2 participants