mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 20:57:13 -05:00
raise an exception when an invalid sort type is passed
This commit is contained in:
parent
a1693a3691
commit
74518264e0
1 changed files with 2 additions and 0 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue