Commit a1e1ac29 authored by Betoule Marc's avatar Betoule Marc
Browse files

Correct a bug in load_params

parent e27ede60
...@@ -429,7 +429,7 @@ class Environment(EnvironmentBase): ...@@ -429,7 +429,7 @@ class Environment(EnvironmentBase):
f.close() f.close()
except IOError: except IOError:
self.logger.warning('No such file: %s'%filename) self.logger.warning('No such file: %s'%filename)
except UnpicklingError: except pickle.UnpicklingError:
self.logger.warning('Failed to unpickle from file: %s'%filename) self.logger.warning('Failed to unpickle from file: %s'%filename)
f.close() f.close()
if param_name == '*': if param_name == '*':
......
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