diff --git a/bilby/core/result.py b/bilby/core/result.py index 8cdef4e19526888b2e0b377f3bea57fdc1d4de81..84cf24ca01ad78f78085017a47f9caed8ad9105d 100644 --- a/bilby/core/result.py +++ b/bilby/core/result.py @@ -804,7 +804,7 @@ class Result(object): s = model_posterior.iloc[self.posterior.log_likelihood.idxmax()] ax.plot(xsmooth, model(xsmooth, **s), lw=1, color='k', label=maxl_label) - except AttributeError: + except (AttributeError, TypeError): logger.debug( "No log likelihood values stored, unable to plot max")