From e19217ece77bb7c64bee6979034aa0c3b78a1aa4 Mon Sep 17 00:00:00 2001 From: Michael DM Dryden <mdryden@chem.utoronto.ca> Date: Tue, 21 Mar 2017 17:23:00 -0400 Subject: [PATCH] Fixed parameter loading. --- dstat_interface/params.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dstat_interface/params.py b/dstat_interface/params.py index 6d384e6..0aa8580 100755 --- a/dstat_interface/params.py +++ b/dstat_interface/params.py @@ -61,6 +61,8 @@ def load_params(window, path): get_params(window) except InputError: # Will be thrown because no experiment will be selected pass + except KeyError: # Will be thrown because no experiment will be selected + pass with open(path, 'r') as f: params = yaml.load(f) -- GitLab