Fix potential NameError when RuntimeError is caught during get_chip_status call
NameError
get_chip_status