From e494b5d46d534e427ad3f70c6d03d8f694773e93 Mon Sep 17 00:00:00 2001
From: Matthew Pitkin <matthew.pitkin@ligo.org>
Date: Mon, 7 Jan 2019 14:52:10 +0000
Subject: [PATCH] result.py: add another exception to catch in plot_with_data

---
 bilby/core/result.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bilby/core/result.py b/bilby/core/result.py
index 8cdef4e1..84cf24ca 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")
 
-- 
GitLab