Skip to content

Commit 73a5a44

Browse files
authored
Merge pull request #103 from strictdoc-project/revert-94-stanislav/timeout
Revert "fix: set --page-load-timeout maximum value to 3600 (1 hour)"
2 parents 3f070f6 + 84aa7b8 commit 73a5a44

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
@@ -620,8 +620,8 @@ def _main() -> None:
620620
)
621621
command_parser_print.add_argument(
622622
"--page-load-timeout",
623-
# 60 minutes should be enough to print even the largest documents.
624-
type=IntRange(0, 60 * 60),
623+
# 10 minutes should be enough to print even the largest documents.
624+
type=IntRange(0, 10 * 60),
625625
default=2 * 60,
626626
help=(
627627
"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, 3600].
3+
CHECK: {{.*}} print: error: argument --page-load-timeout: Must be an integer in the range [0, 600].

0 commit comments

Comments
 (0)