Commit dd34bada by Martyn James Committed by marjev

pylinty minty

parent 2117d168
...@@ -181,7 +181,7 @@ class CoursewareSearchIndexer(object): ...@@ -181,7 +181,7 @@ class CoursewareSearchIndexer(object):
try: try:
if settings.FEATURES.get('SEGMENT_IO_LMS') and hasattr(settings, 'SEGMENT_IO_LMS_KEY'): if settings.FEATURES.get('SEGMENT_IO_LMS') and hasattr(settings, 'SEGMENT_IO_LMS_KEY'):
#Google Analytics - log index content request # Google Analytics - log index content request
import analytics import analytics
analytics.track( analytics.track(
...@@ -198,5 +198,6 @@ class CoursewareSearchIndexer(object): ...@@ -198,5 +198,6 @@ class CoursewareSearchIndexer(object):
# an operation to fail because of an analytics event, so we will capture these # an operation to fail because of an analytics event, so we will capture these
# errors in the logs. # errors in the logs.
log.exception( log.exception(
u'Unable to emit {0} event for content indexing.'.format(event_name) u'Unable to emit %s event for content indexing.',
event_name,
) )
...@@ -51,6 +51,7 @@ open_ended_grading_interface = { ...@@ -51,6 +51,7 @@ open_ended_grading_interface = {
'grading_controller': 'grading_controller', 'grading_controller': 'grading_controller',
} }
class TestModuleSystem(ModuleSystem): # pylint: disable=abstract-method class TestModuleSystem(ModuleSystem): # pylint: disable=abstract-method
""" """
ModuleSystem for testing ModuleSystem for testing
......
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