Skip to content

wrap weasyprint to catch exceptions #6324

@rjsparks

Description

@rjsparks

A recent network issue caused weasyprint to fail to fetch some font information from the static site.

At weasyprint/urls.py#L249 a URLFetching error was raised trying to retrieve https://static.ietf.org/fonts/noto-sans-mono/import.css (the fetch returned a 502 Bad Gateway).

The library is called in the pdfized() call at doc/views_doc.py#L977 -> doc/models.py#L641 call to wpHTML

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions