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
Home
Error Code: 500
Hide Traceback
Traceback (most recent call last):
File "apps/frappe/frappe/website/serve.py", line 18, in get_response
response = renderer_instance.render()
File "apps/frappe/frappe/website/page_renderers/template_page.py", line 84, in render
html = self.get_html()
File "apps/frappe/frappe/website/utils.py", line 510, in cache_html_decorator
html = func(*args, **kwargs)
File "apps/frappe/frappe/website/page_renderers/template_page.py", line 95, in get_html
self.update_context()
File "apps/frappe/frappe/website/page_renderers/template_page.py", line 163, in update_context
data = self.run_pymodule_method("get_context")
File "apps/frappe/frappe/website/page_renderers/template_page.py", line 225, in run_pymodule_method
return method(self.context)
File "apps/frappe/frappe/www/printview.py", line 68, in get_context
"title": frappe.utils.strip_html(doc.get_title() or [doc.name](http://doc.name/)),
File "apps/frappe/frappe/utils/data.py", 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.