aboutsummaryrefslogtreecommitdiffstats
path: root/python/markit/rates.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/markit/rates.py')
-rw-r--r--python/markit/rates.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/markit/rates.py b/python/markit/rates.py
index 9f46d9d1..386cea7e 100644
--- a/python/markit/rates.py
+++ b/python/markit/rates.py
@@ -24,7 +24,7 @@ def downloadMarkitIRData(download_date=datetime.date.today(),
with zipfile.ZipFile(BytesIO(r.content)) as z:
z.extractall(path=os.path.join(os.environ['DATA_DIR'], "Yield Curves"))
else:
- return downloadMarkitIRData(download_date - datetime.timedelta(days=1))
+ raise ValueError(r.content.decode().rstrip())
tree = ET.parse(os.path.join(os.environ['DATA_DIR'], "Yield Curves", filename + '.xml'))
deposits = zip([e.text for e in tree.findall('./deposits/*/tenor')],