Commit 621acd20 by Victor Shnayder

broken tabs are important enough to count as an error, not a warning

parent a19319f7
......@@ -269,6 +269,6 @@ def get_static_tab_contents(course, tab):
contents = replace_urls(tabfile.read(), course.metadata['data_dir'])
return replace_urls(contents, staticfiles_prefix='/courses/'+course.id, replace_prefix='/course/')
except (ResourceNotFoundError) as err:
log.warning("Couldn't load tab contents from '{0}': {1}".format(p, err))
log.exception("Couldn't load tab contents from '{0}': {1}".format(p, err))
return None
return None
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