Pylint logging-format-interpolation: Convert logging calls to use %s formatting
This commit is contained in:
@@ -890,10 +890,9 @@ def get_module_by_usage_id(request, course_id, usage_id, disable_staff_debug_inf
|
||||
descriptor_orig_usage_key, descriptor_orig_version = modulestore().get_block_original_usage(usage_key)
|
||||
except ItemNotFoundError:
|
||||
log.warn(
|
||||
"Invalid location for course id {course_id}: {usage_key}".format(
|
||||
course_id=usage_key.course_key,
|
||||
usage_key=usage_key
|
||||
)
|
||||
"Invalid location for course id %s: %s",
|
||||
usage_key.course_key,
|
||||
usage_key
|
||||
)
|
||||
raise Http404
|
||||
|
||||
|
||||
Reference in New Issue
Block a user