def _get_jinja_error_message(tb_data):
 try:
  line = _get_jinja_error_slug(tb_data)
  return u'{0}({1}):\n{3}'.format(*line)
 except IndexError:
  pass
 return None

def _get_jinja_error_message ( tb_data ) : try : line = _get_jinja_error_slug ( tb_data ) return u'{0}({1}):\n{3}' . format ( * line ) except IndexError : pass return None
return an understandable message from jinja error output .