From c39d819dd2b4dbd5352faa70b4b960c703e92766 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 20 Jul 2010 08:13:02 +0000 Subject: [PATCH] fix for a resume bug reported by Augusto Urbieta --- doc/THANKS | 2 ++ lib/utils/resume.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/doc/THANKS b/doc/THANKS index 7b67d8ea0..beeedf8b2 100644 --- a/doc/THANKS +++ b/doc/THANKS @@ -361,6 +361,8 @@ Stuffe Sylphid for suggesting some features +Augusto Urbieta + for reporting a minor bug == Organizations == diff --git a/lib/utils/resume.py b/lib/utils/resume.py index 2c909c30f..78d1d13a5 100644 --- a/lib/utils/resume.py +++ b/lib/utils/resume.py @@ -150,6 +150,9 @@ def resume(expression, payload): if not payload: return None + if not kb.dbms: + return None + substringQuery = queries[kb.dbms].substring select = re.search("\ASELECT ", expression, re.I)