From 74518264e0820110c166c86fe0cf98e67b5b4519 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 30 Nov 2011 12:34:49 +0900 Subject: [PATCH] raise an exception when an invalid sort type is passed --- anki/find.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/anki/find.py b/anki/find.py index 3c7b53583..0202488b4 100644 --- a/anki/find.py +++ b/anki/find.py @@ -88,6 +88,8 @@ and c.nid=n.id %s""" % (q, order) sort = "c.ivl" else: raise Exception() + else: + raise Exception() return " order by " + sort def _findLimits(self):