Error during Application __init__ doesn't prevent it from running
KyleBenson opened this issue · comments
If we encounter some exception while creating an Application/Sensor (e.g. a ValueError is raised in one of the init functions to indicate incorrect parameters), this doesn't stop the Application from running. This is likely due to circuits registering the Application and then starting it when the whole system (top-most Component) is started. Perhaps we need to specify a del method to unregister it when it isn't created properly? Or another suggestion on the web is to make use of new to catch exceptions and handle the error.