aboutsummaryrefslogtreecommitdiffstats
path: root/python/Dawn/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/Dawn/views.py')
-rw-r--r--python/Dawn/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/Dawn/views.py b/python/Dawn/views.py
index 33365aa2..5f267f1b 100644
--- a/python/Dawn/views.py
+++ b/python/Dawn/views.py
@@ -207,7 +207,7 @@ def get_bbg_id():
try:
_, indextype, _, series, tenor = bbg_id.split()
except ValueError:
- return None
+ return "not a valid bloomberg description", 400
indextype = indextype[:2]
tenor = tenor[:-1] + 'yr'
series = int(series[1:])