From 55ef78fc64eb8187b249e5f3e7f61448c5234a68 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 29 Jan 2014 12:52:57 -0500 Subject: [PATCH] Correct issues in trying to keep ipmi worker alive --- plugins/hardwaremanagement/ipmi.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/hardwaremanagement/ipmi.py b/plugins/hardwaremanagement/ipmi.py index dd8222cf..81bbdc33 100644 --- a/plugins/hardwaremanagement/ipmi.py +++ b/plugins/hardwaremanagement/ipmi.py @@ -40,10 +40,11 @@ def _ipmi_evtloop(): while ipmiwaiters: waiter = ipmiwaiters.popleft() waiter.send() - except RunTimeError: + except RuntimeError: raise except: - print "Whoops, that was a doozy" + import sys + print sys.exc_info()[2] def _process_chgs(intline): #here we receive functions to run in our thread @@ -64,7 +65,8 @@ def _process_chgs(intline): if len(cval) > 2: cval[2](rv) except: # assure the thread does not crash and burn - print "should put in some debug data here..." + import sys + print sys.exc_info()[2]