Trying to print getting this server error

I am trying to print the Doctype and getting this server error

Uncaught Server Exception
There was an error building this page
Error Code: 500
Hide Traceback
Traceback (most recent call last):
File "apps/frappe/frappe/website/", line 18, in get_response
response = renderer_instance.render()
File "apps/frappe/frappe/website/page_renderers/", line 84, in render
html = self.get_html()
File "apps/frappe/frappe/website/", line 510, in cache_html_decorator
html = func(*args, **kwargs)
File "apps/frappe/frappe/website/page_renderers/", line 95, in get_html
File "apps/frappe/frappe/website/page_renderers/", line 163, in update_context
data = self.run_pymodule_method("get_context")
File "apps/frappe/frappe/website/page_renderers/", line 225, in run_pymodule_method
return method(self.context)
File "apps/frappe/frappe/www/", line 68, in get_context
"title": frappe.utils.strip_html(doc.get_title() or [](,
File "apps/frappe/frappe/utils/", line 1490, in strip_html
return _striptags_re.sub("", text)
TypeError: expected string or bytes-like object

Any ideas? I´m facing the same issue.