fix crash due to uncaught exception

i2creadByteData can throw exception, catch it to prevent
pfr-manager crash on system with no cpld.

Tested:
Build and run the new code, pfr-manager stays up on
system that it crashed without the change.

Command:
GET: https://<BMC_IP>/redfish/v1/UpdateService/FirmwareInventory/
     cpld_recovery
Response:
{
    "@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/cpld_recovery",
    "@odata.type": "#SoftwareInventory.v1_1_0.SoftwareInventory",
    "Description": "Other image",
    "Id": "cpld_recovery",
    "Name": "Software Inventory",
    "Status": {
        "Health": "Warning",
        "HealthRollup": "OK",
        "State": "StandbySpare"
    },
    "Updateable": true,
    "Version": ""
}

Signed-off-by: Zhikui Ren <zhikui.ren@intel.com>
Change-Id: Id8b80f56eebaa225010fa6b835a75a31a507a3b7
1 file changed