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.

Home Page:http://scale.ics.uci.edu/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.