From 203a8f9e70f7536b9c57b4d51257643d95ae85bd Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Thu, 19 Jul 2007 20:15:07 +0000 Subject: [PATCH] Another filter to skip None notes. --- controller/Notebooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/Notebooks.py b/controller/Notebooks.py index fd165a9..756b19b 100644 --- a/controller/Notebooks.py +++ b/controller/Notebooks.py @@ -335,7 +335,7 @@ class Notebooks( object ): return RECENT_COUNT = 10 - notes = notebook.notes + notes = [ note for note in notebook.notes if note is not None ] notes.sort( lambda a, b: cmp( b.revision, a.revision ) ) yield dict(