KyleBenson / scale_client

The Python-based SCALE Client software for acquiring data from various sensors (i.e. via Raspberry Pi platform), processing it, and sharing it through multiple networks and data exchange protocols.
http://scale.ics.uci.edu/
Other
4 stars 8 forks source link

Error during Application __init__ doesn't prevent it from running #35

Open KyleBenson opened 7 years ago

KyleBenson commented 7 years ago

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.