Clicking "start task in hamster" crashes gtg

Bug #1265357 reported by sara mathison on 2014-01-01
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Getting Things GNOME!
Medium
Parin Porecha

Bug Description

In gtg, when I click "Plugins" > "Start task in hamster" gtg crashes with the error below. I am using gtg-0.3.1-1.fc20.

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/GTG/plugins/hamster/hamster.py", line 340, in browser_cb
    self.decide_start_or_stop_activity(task, widget)
  File "/usr/lib/python2.7/site-packages/GTG/plugins/hamster/hamster.py", line 347, in decide_start_or_stop_activity
    if self.is_task_active(task):
  File "/usr/lib/python2.7/site-packages/GTG/plugins/hamster/hamster.py", line 177, in is_task_active
    records = self.get_records(task)
  File "/usr/lib/python2.7/site-packages/GTG/plugins/hamster/hamster.py", line 146, in get_records
    ids = self.get_hamster_ids(task)
  File "/usr/lib/python2.7/site-packages/GTG/plugins/hamster/hamster.py", line 191, in get_hamster_ids
    a = task.get_attribute("id-list", namespace=self.PLUGIN_NAMESPACE)
AttributeError: 'NoneType' object has no attribute 'get_attribute'

Related branches

sara mathison (saramathison) wrote :

I also just noticed that clicking "start task in hamster" deletes the task that is selected from gtg. That's not good. I just lost a few test tasks and all of the default ones.

sara mathison (saramathison) wrote :

Actually the tasks aren't deleted from gtg because of the hamster plugin. They are deleted because of the RTM plugin, it was just happened to sync with RTM around the same time I clicked "start task in hamster". But gtg still crashes, unless I "ignore this error". If I ignore the error, it appears that the task is being tracked in hamster, but it's actually not.

Changed in gtg:
assignee: nobody → Parin Porecha (parinporecha)
importance: Undecided → Medium
status: New → In Progress
milestone: none → 0.3.2
Parin Porecha (parinporecha) wrote :

Fixed in revision 1342

Changed in gtg:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers