Error when send mail frappe

When i get html from print_format and assign it to content of send_mail function, it raises error about CSSRulemedia, anyone can help me please?


help me please !!!