about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--wqflask/wqflask/search_results.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/wqflask/wqflask/search_results.py b/wqflask/wqflask/search_results.py
index c44436d8..d76add67 100644
--- a/wqflask/wqflask/search_results.py
+++ b/wqflask/wqflask/search_results.py
@@ -81,7 +81,12 @@ views.py).
         assert(is_str(kw.get('dataset')))
         self.dataset = create_dataset(kw['dataset'], dataset_type)
         logger.debug("search_terms:", self.search_terms)
-        self.search()
+
+        #ZS: I don't like using try/except, but it seems like the easiest way to account for all possible bad searches here
+        try:
+            self.search()
+        except:
+            self.search_term_exists = False
         if self.search_term_exists:
             self.gen_search_result()