LOG('ActivityTool.notifyUser',WARNING,'Mail containing failure information failed to be sent: %s. Exception was: %s %s\n%s'%(message,self.exc_type,self.exc_value,self.traceback))
LOG('ActivityTool.notifyUser',WARNING,
'Mail containing failure information failed to be sent: %s'%message)
# Raise a dummy exception, ignore it, fetch it and use it as if it was the error causing message non-execution. This will help identifyting the cause of this misbehaviour.
# Raise a dummy exception, ignore it, fetch it and use it as if it was the error causing message non-execution. This will help identifyting the cause of this misbehaviour.
try:
try:
raiseException,'Message execution failed, but there is no exception to explain it. This is a dummy exception so that one can track down why we end up here outside of an exception handling code path.'
raiseException,'Message execution failed, but there is no exception to explain it. This is a dummy exception so that one can track down why we end up here outside of an exception handling code path.'
except:
exceptException:
pass
exc_info=sys.exc_info()
exc_info=sys.exc_info()
iflog:
iflog:
LOG('ActivityTool',WARNING,'Could not call method %s on object %s. Activity created at:\n%s'%(self.method_id,self.object_path,self.call_traceback),error=exc_info)
LOG('ActivityTool',WARNING,'Could not call method %s on object %s. Activity created at:\n%s'%(self.method_id,self.object_path,self.call_traceback),error=exc_info)