forked from ietf-tools/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 4
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 (ietf-tools#6324)
- Loading branch information
Showing
3 changed files
with
34 additions
and
1 deletion.
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
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 %}Network error while rendering PDF{% endblock %} | ||
{% block content %} | ||
{% origin %} | ||
<h1>Network error while rendering PDF</h1> | ||
<p> | ||
A network error was encountered while trying to render your document as PDF. | ||
</p> | ||
<p> | ||
We have retried the operation, and it failed again. You may want to wait a bit, and try again. | ||
</p> | ||
<p> | ||
The error was: <code>{{ error }}</code> | ||
</p> | ||
{% endblock %} |