Skip to content
Snippets Groups Projects
Commit ac14b8db authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Fix bug

- If no saved data exists when loading, a valueerror is now raises. This
  catched that exception to work as expected.
parent 79b52b78
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment