diff --git a/financepy/products/bonds/bond.py b/financepy/products/bonds/bond.py index 5d079afd..12965c7f 100644 --- a/financepy/products/bonds/bond.py +++ b/financepy/products/bonds/bond.py @@ -1235,8 +1235,7 @@ def yield_to_maturity( maxiter=50, ) except RuntimeError: - print(f"Warning: YTM calculation did not converge for price { - dirty_price}") + print(f"Warning: YTM calculation did not converge for price {dirty_price}") ytm = np.nan ytms.append(ytm) @@ -1546,8 +1545,7 @@ def option_adjusted_spread( oass.append(oas) except RuntimeError: - print(f"Warning: OAS calculation did not converge for price { - dirty_price}") + print(f"Warning: OAS calculation did not converge for price {dirty_price}") oass.append(np.nan) if len(oass) == 1: