diff --git a/bilby/bilby_mcmc/sampler.py b/bilby/bilby_mcmc/sampler.py index 6676c76d37ac89ab912a824c18e0d3b175b785c1..9aeaa731d035619fe58ba82fb6b98150a398e25b 100644 --- a/bilby/bilby_mcmc/sampler.py +++ b/bilby/bilby_mcmc/sampler.py @@ -388,7 +388,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