diff --git a/bilby/bilby_mcmc/sampler.py b/bilby/bilby_mcmc/sampler.py index fcd4c9c5aa82d02334b1ffe02e5fbe501d4e14b8..453584270ab530fc2254800863e410146da5e73c 100644 --- a/bilby/bilby_mcmc/sampler.py +++ b/bilby/bilby_mcmc/sampler.py @@ -382,7 +382,7 @@ class Bilby_MCMC(MCMCSampler): If true, resume file was successfully loaded, otherwise false """ - if os.path.isfile(self.resume_file) is False: + if os.path.isfile(self.resume_file) is False or not os.path.getsize(self.resume_file): return False import dill