def _get_course_content_from_ecommerce(course_id, site_code=None):
api = get_ecommerce_client(site_code=site_code)<EOL>try:<EOL><INDENT>api_response = api.courses(course_id).get()<EOL><DEDENT>except Exception:  <EOL><INDENT>logger.exception(<EOL>'<STR_LIT>',<EOL>course_id,<EOL>exc_info=True<EOL>)<EOL>return {}<EOL><DEDENT>return {<EOL>'<STR_LIT:title>': api_response.get('<STR_LIT:name>'),<EOL>'<STR_LIT>': api_response.get('<STR_LIT>')<EOL>}<EOL>
Get course information using the Ecommerce course api.

In case of error returns empty response.
Arguments:
    course_id (str): course key of the course
    site_code (str): site code

Returns:
    course information from Ecommerce