From bc4066f68efe0ca720de00871ce6c7a4730dbd15 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 6 May 2009 15:00:54 +0900 Subject: [PATCH] don't fail when trying to update card that's been deleted --- ankiqt/ui/cardlist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ankiqt/ui/cardlist.py b/ankiqt/ui/cardlist.py index 67eaa832f..05389899b 100644 --- a/ankiqt/ui/cardlist.py +++ b/ankiqt/ui/cardlist.py @@ -172,7 +172,7 @@ where cards.factId = facts.id """ id=self.cards[index.row()][0]) self.emit(SIGNAL("dataChanged(QModelIndex,QModelIndex)"), index, self.index(index.row(), 1)) - except IndexError: + except: # called after search changed pass