summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2017-05-18 15:43:21 -0400
committerGuillaume Horel <guillaume.horel@gmail.com>2017-05-18 15:43:21 -0400
commitb0ac54500bc53f5f41bebefaf726548666a705f2 (patch)
tree413a5164017ba78c09656a81822a80e148c6f25f
parent20ca1a9b8796dd5220b9f3ac2914da47d15d5309 (diff)
downloadpyisda-b0ac54500bc53f5f41bebefaf726548666a705f2.tar.gz
handle missing ticker
-rw-r--r--pyisda/curve.pyx3
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