Problem with remove_tag() method - AttributeError: 'NoneType' object has no attribute 'get_children'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GTG |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Whist implementing a delete tag feature (for bug #1044639) I encountered a problem with the remove_tag() method. The issue does not cause a problem with GTG in terms of functionality but shows an error when running from the debug script.
To reproduce the error use the remove_tag() method to remove a tag (or hit the delete key if my solution for bug #1044639 has been merged). Then open a task a hit backspace, you should then see an error and associated stack trace in the terminal. I have pasted mine below as an example:
Traceback (most recent call last):
File "/home/
self.
File "/home/
self.save()
File "/home/
self.
File "/home/
self.modified()
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
func(
File "/usr/lib/
self.
File "/usr/lib/
func(node_id)
File "/usr/lib/
displayed &= filt.is_
File "/usr/lib/
value = self.func(task, parameters=
File "/home/
return node.has_
File "/home/
toreturn = children_
File "/home/
for tagc_name in tag.get_children():
AttributeError: 'NoneType' object has no attribute 'get_children'
Changed in gtg: | |
status: | New → Won't Fix |