diff --git a/bilby/core/sampler/dynesty.py b/bilby/core/sampler/dynesty.py index 9d8a66a91072286dc8067974d6b4d366682d7097..22811bccba9fa330ecf40949a937e70adadb232f 100644 --- a/bilby/core/sampler/dynesty.py +++ b/bilby/core/sampler/dynesty.py @@ -612,7 +612,7 @@ class Dynesty(NestedSampler): fig = dyplot.traceplot(self.sampler.results, labels=labels)[0] fig.tight_layout() fig.savefig(filename) - except (RuntimeError, np.linalg.linalg.LinAlgError, ValueError) as e: + except (RuntimeError, np.linalg.linalg.LinAlgError, ValueError, OverflowError, Exception) as e: logger.warning(e) logger.warning('Failed to create dynesty state plot at checkpoint') finally: