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)