Error when accessing intructor dashboard in a specific language

Hey everyone,
I am getting There has been a 500 error when I try to access the instructor dashboard in the Kannada language on my openEDX website. It does not happen when I access it in other languages. I have added the translation file for kannada myself. The error on the logs are:

Dec 6 10:34:06 ip-172-31-31-187 [service_variant=lms][root][env:sandbox] ERROR [ip-172-31-31-187 2957] [user None] [signals.py:23] - Uncaught exception from None
Traceback (most recent call last):
File “/edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/django/core/handlers/exception.py”, line 34, in inner
response = get_response(request)
File “/edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/django/core/handlers/base.py”, line 115, in _get_response
response = self.process_exception_by_middleware(e, request)
File “/edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/django/core/handlers/base.py”, line 113, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File “/usr/lib/python3.5/contextlib.py”, line 30, in inner
return func(*args, **kwds)
File “/edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/django/utils/decorators.py”, line 142, in _wrapped_view
response = view_func(request, *args, **kwargs)
File “/edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/django/views/decorators/cache.py”, line 31, in _cache_controlled
response = viewfunc(request, *args, **kw)
File “/edx/app/edxapp/edx-platform/lms/djangoapps/instructor/views/instructor_dashboard.py”, line 255, in instructor_dashboard_2
return render_to_response(‘instructor/instructor_dashboard_2/instructor_dashboard_2.html’, context)
File “/edx/app/edxapp/edx-platform/common/djangoapps/edxmako/shortcuts.py”, line 187, in render_to_response
return HttpResponse(render_to_string(template_name, dictionary, namespace, request), **kwargs)
File “/edx/app/edxapp/edx-platform/common/djangoapps/edxmako/shortcuts.py”, line 177, in render_to_string
return template.render(dictionary, request)
File “/edx/app/edxapp/edx-platform/common/djangoapps/edxmako/template.py”, line 83, in render
return self.mako_template.render_unicode(**context_dictionary)
File “/edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/mako/template.py”, line 454, in render_unicode
as_unicode=True)
File “/edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/mako/runtime.py”, line 829, in _render
**kwargs_for_callable(callable, data))
File “/edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/mako/runtime.py”, line 864, in _render_context
_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
File “/edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/mako/runtime.py”, line 890, in exec_template
callable
(context, *args, **kwargs)
File “/tmp/mako_lms/7fa50c86c772c2affd8b5a04d05a85da/main.html.py”, line 353, in render_body
__M_writer(filters.html_escape(filters.decode.utf8(self.body())))
File “/tmp/mako_lms/7fa50c86c772c2affd8b5a04d05a85da/instructor/instructor_dashboard_2/instructor_dashboard_2.html.py”, line 138, in render_body
runtime._include_file(context, ( section_data[‘section_key’] ) + ‘.html’, _template_uri, section_data=section_data)
File “/edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/mako/runtime.py”, line 752, in include_file
callable
(ctx, **kwargs_for_include(callable, context.data, **kwargs))
File “/tmp/mako_lms/7fa50c86c772c2affd8b5a04d05a85da/instructor/instructor_dashboard_2/membership.html.py”, line 73, in render_body
__M_writer(filters.html_escape(filters.decode.utf8(Text(
(“If this option is {em_start}checked{em_end}, users who have not yet registered for {platform_name} will be automatically enrolled.”)).format(em_start=HTML(‘’), em_end=HTML(‘’), platform_name=settings.PLATFORM_NAME))))
File “/edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/markupsafe/init.py”, line 213, in format
return self.class(formatter.vformat(self, args, kwargs))
File “/usr/lib/python3.5/string.py”, line 195, in vformat
result, _ = self._vformat(format_string, args, kwargs, used_args, 2)
File “/usr/lib/python3.5/string.py”, line 205, in _vformat
self.parse(format_string):
ValueError: Single ‘}’ encountered in format string
Dec 6 10:34:06 ip-172-31-31-187 [service_variant=lms][django.request][env:sandbox] ERROR [ip-172-31-31-187 2957] [user 14] [log.py:228] - Internal Server Error: /courses/course-v1:Self+DSPKN+2021/instructor
Traceback (most recent call last):
File “/edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/django/core/handlers/exception.py”, line 34, in inner
response = get_response(request)
File “/edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/django/core/handlers/base.py”, line 115, in _get_response
response = self.process_exception_by_middleware(e, request)
File “/edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/django/core/handlers/base.py”, line 113, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File “/usr/lib/python3.5/contextlib.py”, line 30, in inner
return func(*args, **kwds)
File “/edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/django/utils/decorators.py”, line 142, in _wrapped_view
response = view_func(request, *args, **kwargs)
File “/edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/django/views/decorators/cache.py”, line 31, in _cache_controlled
response = viewfunc(request, *args, **kw)
File “/edx/app/edxapp/edx-platform/lms/djangoapps/instructor/views/instructor_dashboard.py”, line 255, in instructor_dashboard_2
return render_to_response(‘instructor/instructor_dashboard_2/instructor_dashboard_2.html’, context)
File “/edx/app/edxapp/edx-platform/common/djangoapps/edxmako/shortcuts.py”, line 187, in render_to_response
return HttpResponse(render_to_string(template_name, dictionary, namespace, request), **kwargs)
File “/edx/app/edxapp/edx-platform/common/djangoapps/edxmako/shortcuts.py”, line 177, in render_to_string
return template.render(dictionary, request)
File “/edx/app/edxapp/edx-platform/common/djangoapps/edxmako/template.py”, line 83, in render
return self.mako_template.render_unicode(**context_dictionary)
File “/edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/mako/template.py”, line 454, in render_unicode
as_unicode=True)
File “/edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/mako/runtime.py”, line 829, in _render
**kwargs_for_callable(callable, data))
File “/edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/mako/runtime.py”, line 864, in _render_context
_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
File “/edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/mako/runtime.py”, line 890, in exec_template
callable
(context, *args, **kwargs)
File “/tmp/mako_lms/7fa50c86c772c2affd8b5a04d05a85da/main.html.py”, line 353, in render_body
__M_writer(filters.html_escape(filters.decode.utf8(self.body())))
File “/tmp/mako_lms/7fa50c86c772c2affd8b5a04d05a85da/instructor/instructor_dashboard_2/instructor_dashboard_2.html.py”, line 138, in render_body
runtime._include_file(context, ( section_data[‘section_key’] ) + ‘.html’, _template_uri, section_data=section_data)
File “/edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/mako/runtime.py”, line 752, in include_file
callable
(ctx, **kwargs_for_include(callable, context.data, **kwargs))
File “/tmp/mako_lms/7fa50c86c772c2affd8b5a04d05a85da/instructor/instructor_dashboard_2/membership.html.py”, line 73, in render_body
__M_writer(filters.html_escape(filters.decode.utf8(Text(
(“If this option is {em_start}checked{em_end}, users who have not yet registered for {platform_name} will be automatically enrolled.”)).format(em_start=HTML(‘’), em_end=HTML(‘’), platform_name=settings.PLATFORM_NAME))))
File “/edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/markupsafe/init.py”, line 213, in format
return self.class(formatter.vformat(self, args, kwargs))
File “/usr/lib/python3.5/string.py”, line 195, in vformat
result, _ = self._vformat(format_string, args, kwargs, used_args, 2)
File “/usr/lib/python3.5/string.py”, line 205, in _vformat
self.parse(format_string):
ValueError: Single ‘}’ encountered in format string

Any kind of help would be greatly appreciated.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.