From 75868490cfb793455953127597865d191db9259b Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 29 Jan 2009 16:58:49 +0900 Subject: [PATCH] ignore blank answer --- ankiqt/ui/view.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ankiqt/ui/view.py b/ankiqt/ui/view.py index bebf805b2..54155d0de 100644 --- a/ankiqt/ui/view.py +++ b/ankiqt/ui/view.py @@ -133,6 +133,9 @@ class View(object): playFromText(q) def correct(self, a, b): + if b == "": + return ""; + ret = ""; s = difflib.SequenceMatcher(None, b, a)