Commit e135a405 by David Ormsbee

Better error checking with Analytics are unavailable.

parent ac62fc0f
......@@ -605,7 +605,7 @@ def instructor_dashboard(request, course_id):
return json.loads(res.content, object_pairs_hook=OrderedDict)
else:
log.error("Error fetching %s, code: %s, msg: %s",
(url, res.status_code, res.content))
url, res.status_code, res.content)
return None
analytics_results = {}
......
......@@ -371,6 +371,10 @@ function goto( mode)
%if modeflag.get('Analytics'):
%if not any(analytics_results.values()):
<p>No Analytics are available at this time.</p>
%endif
%if analytics_results.get("StudentsEnrolled"):
<p>
Students enrolled:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment