summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pyisda/credit_index.pyx3
1 files changed, 2 insertions, 1 deletions
diff --git a/pyisda/credit_index.pyx b/pyisda/credit_index.pyx
index 5797f45..b7f1d74 100644
--- a/pyisda/credit_index.pyx
+++ b/pyisda/credit_index.pyx
@@ -75,7 +75,8 @@ cdef class CurveList:
else:
if len(curves) >= 1:
w, sc = curves[0]
- self.base_date = sc.get_TCurve().fBaseDate
+ if sc is not None:
+ self.base_date = sc.get_TCurve().fBaseDate
i = 0
cdef int n_skipped = 0