aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorMunyoki Kilyungi2022-09-02 17:03:29 +0300
committerBonfaceKilz2022-09-08 14:26:19 +0300
commit211c7ebee84cadbb565fca54b331c97a9f03724b (patch)
tree96ccc815b80bd987969020cbce979cf6e744fc42 /wqflask
parent5925a540ce9cec6b9df51567efc205470dfe56cb (diff)
downloadgenenetwork2-211c7ebee84cadbb565fca54b331c97a9f03724b.tar.gz
Raise a ValueError instead of generic exception
* wqflask/wqflask/db_info.py (InfoPage.get_info): Wrap error message in ValueError Exception.
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/db_info.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/db_info.py b/wqflask/wqflask/db_info.py
index bd2f3b5e..336fc7df 100644
--- a/wqflask/wqflask/db_info.py
+++ b/wqflask/wqflask/db_info.py
@@ -47,7 +47,7 @@ class InfoPage:
final_query = f"{query_base}InfoPageName = {self.info_page_name}"
results = g.db.execute(final_query).fetchone()
else:
- raise 'No correct parameter found'
+ raise ValueError('No correct parameter found')
if results:
self.info = process_query_results(results)