def _sendback_result(result_queue, work_id, result=None, exception=None):
try:<EOL><INDENT>result_queue.put(_ResultItem(work_id, result=result,<EOL>exception=exception))<EOL><DEDENT>except BaseException as e:<EOL><INDENT>exc = _ExceptionWithTraceback(e)<EOL>result_queue.put(_ResultItem(work_id, exception=exc))<EOL><DEDENT>
Safely send back the given result or exception