add try-catch when call setAttention method

Currently, users can use btbridge/ssifbridge/kcsbridge to interact BMC
and HOST. But only btbridge define "org.openbmc.HostIpmi", therefore, if
the platform does not use btbridge, host-ipmid will throw an exception
when try to check the status of HOST when call setAttention method.
This commit adds the try-catch to make platform still work moothly when
uses ssifbridge/kcsbridge.

Tested:
      1. Use ssifbridge to interact BMC and HOST.
      2. Check Host condition.
         busctl introspect xyz.openbmc_project.Control.Host \
         /xyz/openbmc_project/control/host0
      3. Display information of "/xyz/openbmc_project/control/host0"

Signed-off-by: Thang Tran <thuutran@amperecomputing.com>
Change-Id: I63e584c1f89c6b31de4fa66beb3f0e0b6bdf5e0f
1 file changed