sel-cache: Handle exception invalid entry ID

When the Logging service restarts, the match will get callbacks for all
objects, including /xyz/openbmc_project/logging/internal/manager which
is not a valid logging entry, and the stoul will throw.

Handle the exception properly so that ipmid does not crash on this
exception.

Tested: Manually restart xyz.openbmc_project.Logging.service and verify
        ipmid does not crash, and `ipmitool sel list` works fine.

Signed-off-by: Lei YU <yulei.sh@bytedance.com>
Change-Id: I12b665b6bcdbef4e6176ad2a7e376126fdce5939
1 file changed