fix for a resume bug reported by Augusto Urbieta

This commit is contained in:
Miroslav Stampar 2010-07-20 08:13:02 +00:00
parent d2f88b6ebe
commit c39d819dd2
2 changed files with 5 additions and 0 deletions

View File

@ -361,6 +361,8 @@ Stuffe <stuffe.dk@gmail.com>
Sylphid <sylphid.su@sti.com.tw> Sylphid <sylphid.su@sti.com.tw>
for suggesting some features for suggesting some features
Augusto Urbieta <x2xpy50@gmail.com>
for reporting a minor bug
== Organizations == == Organizations ==

View File

@ -150,6 +150,9 @@ def resume(expression, payload):
if not payload: if not payload:
return None return None
if not kb.dbms:
return None
substringQuery = queries[kb.dbms].substring substringQuery = queries[kb.dbms].substring
select = re.search("\ASELECT ", expression, re.I) select = re.search("\ASELECT ", expression, re.I)