in APIs/1.0/base-py/ai4e_service.py [0:0]
def _log_and_fail_exeception(self, is_async, **kwargs):
if ('taskId' in kwargs):
taskId = kwargs['taskId']
if taskId:
self.log.log_exception(sys.exc_info()[0], taskId)
if is_async:
self.api_task_manager.FailTask(taskId, 'Task failed - try again')
else:
self.log.log_exception(sys.exc_info()[0])
else:
self.log.log_exception(sys.exc_info()[0])