From d860d0483e19059ffaaa2fa540deb3ce3607653b Mon Sep 17 00:00:00 2001 From: Wouter Horlings Date: Thu, 19 Mar 2020 12:39:49 +0100 Subject: [PATCH] Blijkbaar bestond er nog wel een notitie maar zat er geen item meer bij? --- myTodoist.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/myTodoist.py b/myTodoist.py index e67ccc0..437db2a 100644 --- a/myTodoist.py +++ b/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.