aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base/trait.py
diff options
context:
space:
mode:
authorBonfaceKilz2020-08-19 03:13:53 +0300
committerBonfaceKilz2020-08-19 03:13:53 +0300
commit7e60647223017220747d248ed1c986cc8374435e (patch)
treec3b7df36949b2c63b850950a175470161960b44c /wqflask/base/trait.py
parent8be6ecf3d6b70b40be97d4abebb59eabcce8c8f8 (diff)
downloadgenenetwork2-7e60647223017220747d248ed1c986cc8374435e.tar.gz
Wrap `raise` statements in parenthesis
Run `2to3-3.8 -f raise -w .` See: <https://docs.python.org/2/library/2to3.html#2to3fixer-raise>
Diffstat (limited to 'wqflask/base/trait.py')
-rw-r--r--wqflask/base/trait.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/base/trait.py b/wqflask/base/trait.py
index e82df226..c2d260e3 100644
--- a/wqflask/base/trait.py
+++ b/wqflask/base/trait.py
@@ -605,6 +605,6 @@ def retrieve_trait_info(trait, dataset, get_qtl_info=False):
if trait.lrs != "":
trait.LRS_score_repr = LRS_score_repr = '%3.1f' % trait.lrs
else:
- raise KeyError, `trait.name`+' information is not found in the database.'
+ raise KeyError(`trait.name`+' information is not found in the database.')
return trait \ No newline at end of file