diff options
| -rw-r--r-- | pyisda/curve.pyx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pyisda/curve.pyx b/pyisda/curve.pyx index 57ef1f0..6819def 100644 --- a/pyisda/curve.pyx +++ b/pyisda/curve.pyx @@ -447,7 +447,8 @@ cdef class SpreadCurve(Curve): raise ValueError("Didn't init the survival curve properly") else: self._thisptr = make_shared(curve) - self.ticker = ticker.encode() + if ticker: + self.ticker = ticker.encode() survival_probability = Curve.__forward_zero_price |
