Переглянути джерело

Blijkbaar bestond er nog wel een notitie maar zat er geen item meer bij?

master
Wouter Horlings 5 роки тому
джерело
коміт
d860d0483e
1 змінених файлів з 4 додано та 1 видалено
  1. +4
    -1
      myTodoist.py

+ 4
- 1
myTodoist.py Переглянути файл

@@ -122,7 +122,10 @@ class TodoItemList:
# Also load all notes and append them to their corresponding item.
for note in self.api['notes']:
todoNote = TodoNote(note,self.api)
self.items_by_id.get(str(todoNote.item_id)).addNote(todoNote)
try:
self.items_by_id.get(str(todoNote.item_id)).addNote(todoNote)
except:
continue


##@brief magic method definition to so this object can be used as a list.


Завантаження…
Відмінити
Зберегти