skytools.scripting: more safety in run_func_safely()
authormartinko <gamato@users.sf.net>
Wed, 24 Apr 2013 12:13:58 +0000 (15:13 +0300)
committermartinko <gamato@users.sf.net>
Wed, 24 Apr 2013 12:13:58 +0000 (15:13 +0300)
commitc3d00f0ba488ffc3aab36842dfd6bcde3e1e72e9
tree894e18e2dcedab689dd8f7f3e26fae6f2b3e23c9
parent4efb39fd4c167b10a973f87eccdf2c20384611b5
skytools.scripting: more safety in run_func_safely()

Scenario resolved:
startup() fails and some variables are never initialised.  those are used in overridden send_stats() which is called from generic exception handler in run_func_safely().  thus a new exception is raised that would obscure the original exception raised in startup().
python/skytools/scripting.py