Commit b601461d authored by Klaus Aehlig's avatar Klaus Aehlig
Browse files

re-add try statement



...that was lost in the merge
Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
Reviewed-by: default avatarHrvoje Ribicic <riba@google.com>
parent 246fa7d4
......@@ -2515,7 +2515,8 @@ class ConfigWriter(object):
# Read the configuration data. If offline, read the file directly.
# If online, call WConfd.
if self._offline:
raw_data = utils.ReadFile(self._cfg_file)
try:
raw_data = utils.ReadFile(self._cfg_file)
data_dict = serializer.Load(raw_data)
# Make sure the configuration has the right version
_ValidateConfig(data_dict)
......
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