diff options
Diffstat (limited to 'python/cds_curve.py')
| -rw-r--r-- | python/cds_curve.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/python/cds_curve.py b/python/cds_curve.py index 7934f517..92b3af72 100644 --- a/python/cds_curve.py +++ b/python/cds_curve.py @@ -41,7 +41,9 @@ def calibrate_portfolio( ): try: index = MarkitBasketIndex(index_type, series, tenors) - except ValueError: + except (ValueError, TypeError, AttributeError) as e: + logging.error(f"error with {index_type} {series}") + print(str(e)) return if start_date: index.index_quotes = index.index_quotes[start_date:] |
