Cannot add new task

Bug #1134145 reported by florin
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Google-Tasks-Indicator
High
Lorenzo Carbonell

Bug Description

I try to add a new task.
Steps to reproduce:
- click on Tray icon, select Add new task
- select Task list, insert title, insert description, insert Due date, click OK
- window closes, but my task does not show up in the menu or the task list
- try to sync with google, I get this response

{'Authorization': 'OAuth ya29.AHES6ZTxCjHfffIgR4A7kwrmIUGsvLGx6sOxhZVwTAvHdpAHvywa2fg'}
<Response [200]>
Traceback (most recent call last):
  File "/usr/share/google-tasks-indicator/googletasksindicator.py", line 220, in sync
    new_task = gta.create_task( tasklist_id = task['tasklist_id'], title = task['title'], notes=task['notes'], iscompleted=task.get_completed(),due=due,data_completed=task['completed'])
UnboundLocalError: local variable 'due' referenced before assignment

My settings are like this:
a) Options tab
Task list -> one of my task list selected
Autostart -> on
Theme light -> on

b) Sync options
Tasks local only -> copy to external
Tasks external only -> copy to local
Tasks local and external only -> do none

c) Login
Allow acces to Google tasks -> on

BTW, it does add a new task list, but it multiplies it on sync. I have 2 task lists with the same name (the one I created last night). It should only create it again if it does not exist.

Changed in google-tasks-indicator:
assignee: nobody → Lorenzo Carbonell (lorenzo-carbonell)
importance: Undecided → High
status: New → In Progress
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers