Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 2548, in __call__
return self.wsgi_app(environ, start_response)
File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 2528, in wsgi_app
response = self.handle_exception(e)
File "/usr/local/lib/python3.10/site-packages/flask_restful/__init__.py", line 271, in error_router
return original_handler(e)
File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 2525, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1822, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.10/site-packages/flask_restful/__init__.py", line 271, in error_router
return original_handler(e)
File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1820, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1796, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "/usr/local/lib/python3.10/site-packages/flask_restful/__init__.py", line 467, in wrapper
resp = resource(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/flask/views.py", line 107, in view
return current_app.ensure_sync(self.dispatch_request)(**kwargs)
File "/usr/local/lib/python3.10/site-packages/flask_restful/__init__.py", line 582, in dispatch_request
resp = meth(*args, **kwargs)
File "/app/terrareg/auth_wrapper.py", line 39, in wrapper
return func(*args, **kwargs)
File "/app/terrareg/server/error_catching_resource.py", line 32, in get
return self._get(*args, **kwargs)
File "/app/terrareg/server/api/terrareg_module_version_readme_html.py", line 21, in _get
return module_version.get_readme_html(server_hostname=urllib.parse.urlparse(request.base_url).hostname)
File "/app/terrareg/models.py", line 2901, in get_readme_html
readme_html = convert_markdown_to_html(file_name='README.md', markdown_html=readme_md)
File "/app/terrareg/utils.py", line 134, in convert_markdown_to_html
return markdown(
File "/app/terrareg/markdown_link_modifier.py", line 156, in markdown
return md.convert(text)
File "/usr/local/lib/python3.10/site-packages/markdown/core.py", line 251, in convert
self.lines = prep.run(self.lines)
File "/app/terrareg/markdown_link_modifier.py", line 132, in run
parser.feed(source)
File "/usr/local/lib/python3.10/html/parser.py", line 110, in feed
self.goahead(0)
File "/usr/local/lib/python3.10/html/parser.py", line 170, in goahead
k = self.parse_starttag(i)
File "/usr/local/lib/python3.10/site-packages/markdown/htmlparser.py", line 322, in parse_starttag
self.handle_starttag(tag, attrs)
File "/app/terrareg/markdown_link_modifier.py", line 95, in handle_starttag
attrs[itx] = (attr[0], _convert_id(self.md.terrareg_file_name, attr[1]))
File "/app/terrareg/markdown_link_modifier.py", line 17, in _convert_id
id = NON_ALPHANUMERIC_REPLACEMENT_RE.sub("", HYPHEN_REPLACEMENT_RE.sub("-", id))
TypeError: expected string or bytes-like object