Skip to content

Commit

Permalink
TLDR-502 increase converter timeout (#361)
Browse files Browse the repository at this point in the history
  • Loading branch information
NastyBoget authored Oct 23, 2023
1 parent 20ff0d7 commit 318d389
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion dedoc/converters/concrete_converters/abstract_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def __init__(self, *, config: dict) -> None:
"""
:param config: configuration of the converter, e.g. logger for logging
"""
self.timeout = 10
self.timeout = 60
self.period_checking = 0.05
self.config = config
self.logger = config.get("logger", logging.getLogger())
Expand Down
1 change: 0 additions & 1 deletion dedoc/converters/concrete_converters/pdf_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ class PDFConverter(AbstractConverter):
"""
def __init__(self, *, config: dict) -> None:
super().__init__(config=config)
self.timeout = 60

def can_convert(self, extension: str, mime: str, parameters: Optional[dict] = None) -> bool:
"""
Expand Down

0 comments on commit 318d389

Please sign in to comment.