From e0d46f0f12fb413139ebafaf9c6475dc3c0f9f2b Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 6 Nov 2010 07:46:49 +0900 Subject: [PATCH] be resilient if spaceUntil sent wrong --- anki/sync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/sync.py b/anki/sync.py index 7b44e2f23..ccd6a9914 100644 --- a/anki/sync.py +++ b/anki/sync.py @@ -488,7 +488,7 @@ where factId in %s""" % factIds)) 'created': f[2], 'modified': f[3], 'tags': f[4], - 'spaceUntil': f[5], + 'spaceUntil': f[5] or "", 'lastCardId': f[6] } for f in facts] self.deck.factCount += (len(facts) - self.deck.s.scalar(