commit | 3b8d055ca761a68c74dad01a306f238674d71878 | [log] [tgz] |
---|---|---|
author | Patrick Williams <patrick@stwcx.xyz> | Thu Apr 06 14:14:15 2017 -0500 |
committer | Patrick Williams <patrick@stwcx.xyz> | Thu Apr 06 14:21:10 2017 -0500 |
tree | dd3e642fd7d9bda011744770e0df3b1635eefa3a | |
parent | 0e72d933c0716a2b93003aba34c325e77a1d7646 [diff] |
Restore settings to default on error In the event that the value read from a persistence file is invalid, currently a ValueError exception is thrown and the settingsd fails to run. Instead, catch this condition and restore the setting to default. Fixes openbmc/openbmc#1442. Change-Id: I22ce8837d9c48b21bab050f1de9b730ec219bc4b Signed-off-by: Patrick Williams <patrick@stwcx.xyz>