about summary refs log tree commit diff
path: root/wqflask/wqflask/correlation/exceptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask/wqflask/correlation/exceptions.py')
-rw-r--r--wqflask/wqflask/correlation/exceptions.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/wqflask/wqflask/correlation/exceptions.py b/wqflask/wqflask/correlation/exceptions.py
index 8e9c8516..f4e2b72b 100644
--- a/wqflask/wqflask/correlation/exceptions.py
+++ b/wqflask/wqflask/correlation/exceptions.py
@@ -4,6 +4,10 @@ class WrongCorrelationType(Exception):
     """Raised when a correlation is requested for incompatible datasets."""
 
     def __init__(self, trait, target_dataset, corr_method):
+        corr_method = {
+            "lit": "Literature",
+            "tissue": "Tissue"
+        }[corr_method]
         message = (
             f"It is not possible to compute the '{corr_method}' correlations "
             f"between trait '{trait.name}' and the data in the "