500: Internal Server Error

Traceback

Traceback (most recent call last):
  File "/opt/odoo14-beta/ODOO/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
    result = request.dispatch()
  File "/opt/odoo14-beta/ODOO/odoo/http.py", line 813, in dispatch
    r = self._call_function(**self.params)
  File "/opt/odoo14-beta/ODOO/odoo/http.py", line 370, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/odoo14-beta/ODOO/odoo/service/model.py", line 94, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/odoo14-beta/ODOO/odoo/http.py", line 358, in checked_call
    result = self.endpoint(*a, **kw)
  File "/opt/odoo14-beta/ODOO/odoo/http.py", line 919, in __call__
    return self.method(*args, **kw)
  File "/opt/odoo14-beta/ODOO/odoo/http.py", line 544, in response_wrap
    response = f(*args, **kw)
  File "/opt/odoo14-beta/ksat-addons/edu_website/controllers/controllers.py", line 47, in courses
    search_addresses = self._extract_searched_records(searches, 'addresses', 'res.partner')
  File "/opt/odoo14-beta/ksat-addons/edu_website/controllers/controllers.py", line 282, in _extract_searched_records
    searches[list_name] = '[%]' % searches[list_name]
Exception

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/odoo14-beta/ODOO/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
    result = request.dispatch()
  File "/opt/odoo14-beta/ODOO/odoo/http.py", line 813, in dispatch
    r = self._call_function(**self.params)
  File "/opt/odoo14-beta/ODOO/odoo/http.py", line 370, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/odoo14-beta/ODOO/odoo/service/model.py", line 94, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/odoo14-beta/ODOO/odoo/http.py", line 358, in checked_call
    result = self.endpoint(*a, **kw)
  File "/opt/odoo14-beta/ODOO/odoo/http.py", line 919, in __call__
    return self.method(*args, **kw)
  File "/opt/odoo14-beta/ODOO/odoo/http.py", line 544, in response_wrap
    response = f(*args, **kw)
  File "/opt/odoo14-beta/ksat-addons/edu_website/controllers/controllers.py", line 47, in courses
    search_addresses = self._extract_searched_records(searches, 'addresses', 'res.partner')
  File "/opt/odoo14-beta/ksat-addons/edu_website/controllers/controllers.py", line 282, in _extract_searched_records
    searches[list_name] = '[%]' % searches[list_name]
ValueError: unsupported format character ']' (0x5d) at index 2