We probably shouldn't call it an error when the motor with certain id is not there, since the purpose of this script is to figure what is connected. I would just keep track of how many motors we found and if there's none display the message that there were no motors found in specified range, otherwise display what motor ids are connected.