equinoxorg/eko_client — Issue #1: [All Python Code] Refactor error handlers and specify expected exceptions instead of catch all
Author: charith-amarasinghe
Created: 2011-11-04 23:58:54+00:00
State: open

As a failsafe option given the short amount of time available to test these scripts, most exception handlers in eko_logger.py do not specify exception classes in the catch statement. I.e. they catch all exceptions regardless.

This is undesirable since the program will skip over conditions which may indicate a critical system failure, eg: flash corruption led to some scripts being garbled and a SyntaxError was raised.

The try...catch blocks should be refactored such that exceptions be bubbled up depending on their severity. A critical exception should be allowed to crash the script set. The parent bash script should detect this condition and start up a failsafe routine that notifies the server and creates a reverse SSH tunnel for maintenance.

A Text notification to the London based technical team should also be dispatched in this event.