diff options
author | Munyoki Kilyungi | 2022-09-02 17:03:29 +0300 |
---|---|---|
committer | BonfaceKilz | 2022-09-08 14:26:19 +0300 |
commit | 211c7ebee84cadbb565fca54b331c97a9f03724b (patch) | |
tree | 96ccc815b80bd987969020cbce979cf6e744fc42 | |
parent | 5925a540ce9cec6b9df51567efc205470dfe56cb (diff) | |
download | genenetwork2-211c7ebee84cadbb565fca54b331c97a9f03724b.tar.gz |
Raise a ValueError instead of generic exception
* wqflask/wqflask/db_info.py (InfoPage.get_info): Wrap error message
in ValueError Exception.
-rw-r--r-- | wqflask/wqflask/db_info.py | 2 |
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) |