Skip to content

Commit 4bb8450

Browse files
authored
Merge pull request #94 from strictdoc-project/stanislav/timeout
fix: set --page-load-timeout maximum value to 3600 (1 hour)
2 parents c2fe1ae + 262a060 commit 4bb8450

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

html2pdf4doc/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,8 +566,8 @@ def _main() -> None:
566566
)
567567
command_parser_print.add_argument(
568568
"--page-load-timeout",
569-
# 10 minutes should be enough to print even the largest documents.
570-
type=IntRange(0, 10 * 60),
569+
# 60 minutes should be enough to print even the largest documents.
570+
type=IntRange(0, 60 * 60),
571571
default=2 * 60,
572572
help=(
573573
"How long shall html2pdf4doc Python driver wait while the "
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
RUN: %expect_exit 2 %html2pdf print --page-load-timeout 1000000 %S/index1.html %S/Output/index1.pdf 2>&1 | filecheck %s
22

3-
CHECK: {{.*}} print: error: argument --page-load-timeout: Must be an integer in the range [0, 600].
3+
CHECK: {{.*}} print: error: argument --page-load-timeout: Must be an integer in the range [0, 3600].

0 commit comments

Comments
 (0)