Commit ac14b8db authored by Gregory Ashton's avatar Gregory Ashton

Fix bug

- If no saved data exists when loading, a valueerror is now raises. This
  catched that exception to work as expected.
parent 79b52b78
Pipeline #19438 passed with stages
in 5 minutes and 56 seconds
......@@ -200,7 +200,12 @@ class Sampler(object):
logging.debug("Command line argument clean given, forcing rerun")
self.cached_result = None
return
self.cached_result = read_in_result(self.outdir, self.label)
try:
self.cached_result = read_in_result(self.outdir, self.label)
except ValueError:
self.cached_result = None
if utils.command_line_args.use_cached:
logging.debug("Command line argument cached given, no cache check performed")
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment