UPDATED: moved try statement inside hardware_info to simplfy code