-
Notifications
You must be signed in to change notification settings - Fork 378
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Wrap weasyprint to catch exceptions (#6728)
* fix: Wrap weasyprint to catch exceptions (#6324) * test: Restore socket function after test * test: Use mock instead of monkeying with sockets * refactor: Log the error * fix: Don't catch non-Exception interruptions --------- Co-authored-by: Robert Sparks <[email protected]>
- Loading branch information
Showing
4 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{# Copyright The IETF Trust 2023, All Rights Reserved #} | ||
{% extends "base.html" %} | ||
{% load origin %} | ||
{% block title %}Error while rendering PDF{% endblock %} | ||
{% block content %} | ||
{% origin %} | ||
<h1>Error while rendering PDF</h1> | ||
<p> | ||
An error was encountered while trying to render your document as PDF. | ||
In case this was a temporary error, you may want to try again in a | ||
little while. | ||
</p> | ||
<p> | ||
A failure report with details about what happened has been sent to the | ||
server administrators. | ||
</p> | ||
{% endblock %} |