diff --git a/bilby/core/sampler/emcee.py b/bilby/core/sampler/emcee.py index 7253a0fa4c49affc236454e703310d55f45fc066..78539b82605021bdee8b1f746c208ce1e6349571 100644 --- a/bilby/core/sampler/emcee.py +++ b/bilby/core/sampler/emcee.py @@ -310,7 +310,11 @@ class Emcee(MCMCSampler): """ if hasattr(self, "_sampler"): pass - elif self.resume and os.path.isfile(self.checkpoint_info.sampler_file): + elif ( + self.resume and + os.path.isfile(self.checkpoint_info.sampler_file) and + os.path.getsize(self.checkpoint_info.sampler_file) + ): import dill logger.info(