Fixing atrribute error in risk when expiry date is None